original_string: public function administrators($field = null)
      {
          $model = TableRegistry::get('CakeAdmin.Administrators');
  
          $query = $model->find('all');
  
          if ($field) {
              $model->displayField($field);
              $query->find('list');
          }
  
          $result = $query->toArray();
  
          return $result;
      }
code: public function administrators($field = null)
      {
          $model = TableRegistry::get('CakeAdmin.Administrators');
  
          $query = $model->find('all');
  
          if ($field) {
              $model->displayField($field);
              $query->find('list');
          }
  
          $result = $query->toArray();
  
          return $result;
      }
code_tokens: public function administrators ( $ field = null ) { $ model = TableRegistry :: get ( 'CakeAdmin.Administrators' ) ; $ query = $ model -> find ( 'all' ) ; if ( $ field ) { $ model -> displayField ( $ field ) ; $ query -> find ( 'list' ) ; } $ result = $ query -> toArray ( ) ; return $ result ; }
docstring: Returns a list of administrators.
  
  @param null $field Non-required field, if empty all data will be returned.
  @return array|string
docstring_tokens: Returns a list of administrators .