original_string: public function relationRefresh($field = null)
      {
          $field = $this->validateField($field);
  
          $result = ['#'.$this->relationGetId('view') => $this->relationRenderView($field)];
          if ($toolbar = $this->relationRenderToolbar($field)) {
              $result['#'.$this->relationGetId('toolbar')] = $toolbar;
          }
  
          if ($eventResult = $this->controller->relationExtendRefreshResults($field)) {
              $result = $eventResult + $result;
          }
  
          return $result;
      }
code: public function relationRefresh($field = null)
      {
          $field = $this->validateField($field);
  
          $result = ['#'.$this->relationGetId('view') => $this->relationRenderView($field)];
          if ($toolbar = $this->relationRenderToolbar($field)) {
              $result['#'.$this->relationGetId('toolbar')] = $toolbar;
          }
  
          if ($eventResult = $this->controller->relationExtendRefreshResults($field)) {
              $result = $eventResult + $result;
          }
  
          return $result;
      }
code_tokens: public function relationRefresh ( $ field = null ) { $ field = $ this -> validateField ( $ field ) ; $ result = [ '#' . $ this -> relationGetId ( 'view' ) => $ this -> relationRenderView ( $ field ) ] ; if ( $ toolbar = $ this -> relationRenderToolbar ( $ field ) ) { $ result [ '#' . $ this -> relationGetId ( 'toolbar' ) ] = $ toolbar ; } if ( $ eventResult = $ this -> controller -> relationExtendRefreshResults ( $ field ) ) { $ result = $ eventResult + $ result ; } return $ result ; }
docstring: Refreshes the relation container only, useful for returning in custom AJAX requests.
  @param  string $field Relation definition.
  @return array The relation element selector as the key, and the relation view contents are the value.
docstring_tokens: Refreshes the relation container only useful for returning in custom AJAX requests .