original_string: protected function _getDefaultExtraLeftButtons()
      {
          $buttons = [];
  
          $action = $this->_action();
          if ($action instanceof EditAction) {
              $buttons[] = [
                  'title' => __d('crud', 'Delete'),
                  'url' => ['action' => 'delete'],
                  'options' => [
                      'block' => 'form.after_end',
                      'class' => 'btn btn-danger btn-delete',
                      'confirm' => __d('crud', 'Are you sure you want to delete this record?'),
                      'name' => '_delete',
                      'style' => 'margin-left: 0',
                  ],
                  'type' => 'postLink',
                  '_label' => 'delete',
              ];
          }
  
          return $buttons;
      }
code: protected function _getDefaultExtraLeftButtons()
      {
          $buttons = [];
  
          $action = $this->_action();
          if ($action instanceof EditAction) {
              $buttons[] = [
                  'title' => __d('crud', 'Delete'),
                  'url' => ['action' => 'delete'],
                  'options' => [
                      'block' => 'form.after_end',
                      'class' => 'btn btn-danger btn-delete',
                      'confirm' => __d('crud', 'Are you sure you want to delete this record?'),
                      'name' => '_delete',
                      'style' => 'margin-left: 0',
                  ],
                  'type' => 'postLink',
                  '_label' => 'delete',
              ];
          }
  
          return $buttons;
      }
code_tokens: protected function _getDefaultExtraLeftButtons ( ) { $ buttons = [ ] ; $ action = $ this -> _action ( ) ; if ( $ action instanceof EditAction ) { $ buttons [ ] = [ 'title' => __d ( 'crud' , 'Delete' ) , 'url' => [ 'action' => 'delete' ] , 'options' => [ 'block' => 'form.after_end' , 'class' => 'btn btn-danger btn-delete' , 'confirm' => __d ( 'crud' , 'Are you sure you want to delete this record?' ) , 'name' => '_delete' , 'style' => 'margin-left: 0' , ] , 'type' => 'postLink' , '_label' => 'delete' , ] ; } return $ buttons ; }
docstring: Get default extra left buttons
  
  @return array
docstring_tokens: Get default extra left buttons