class ViewFieldEventVariables in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Variables/ViewFieldEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\ViewFieldEventVariables
 
Class ViewFieldEventVariables.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables
- class \Drupal\preprocess_event_dispatcher\Variables\ViewFieldEventVariables
 
 
Expanded class hierarchy of ViewFieldEventVariables
2 files declare their use of ViewFieldEventVariables
- OtherEventVariablesTest.php in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ OtherEventVariablesTest.php  - ViewFieldPreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ src/ Factory/ ViewFieldPreprocessEventFactory.php  
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ ViewFieldEventVariables.php, line 13  
Namespace
Drupal\preprocess_event_dispatcher\VariablesView source
class ViewFieldEventVariables extends AbstractEventVariables {
  /**
   * Get the field.
   *
   * @return \Drupal\views\Plugin\views\field\FieldHandlerInterface
   *   Field.
   */
  public function getField() : FieldHandlerInterface {
    return $this->variables['field'];
  }
  /**
   * Get the output.
   *
   * @return \Drupal\views\Plugin\views\field\Markup
   *   Output.
   */
  public function getOutput() : Markup {
    return $this->variables['output'];
  }
  /**
   * Get the row.
   *
   * @return \Drupal\views\ResultRow
   *   Row.
   */
  public function getRow() : ResultRow {
    return $this->variables['row'];
  }
  /**
   * Get the view.
   *
   * @return \Drupal\views\ViewExecutable
   *   View.
   */
  public function getView() : ViewExecutable {
    return $this->variables['view'];
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            AbstractEventVariables:: | 
                  protected | property | Variables. | |
| 
            AbstractEventVariables:: | 
                  public | function | Get a variable with a given name, return default if it does not exist. | 1 | 
| 
            AbstractEventVariables:: | 
                  public | function | Get a variable with a given name by reference. | 1 | 
| 
            AbstractEventVariables:: | 
                  public | function | Remove a given variable. | 1 | 
| 
            AbstractEventVariables:: | 
                  public | function | Set a variable to a given value. | 1 | 
| 
            AbstractEventVariables:: | 
                  public | function | Event Variables constructor. | |
| 
            ViewFieldEventVariables:: | 
                  public | function | Get the field. | |
| 
            ViewFieldEventVariables:: | 
                  public | function | Get the output. | |
| 
            ViewFieldEventVariables:: | 
                  public | function | Get the row. | |
| 
            ViewFieldEventVariables:: | 
                  public | function | Get the view. |