You are here

class ViewTableEventVariables in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Variables/ViewTableEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\ViewTableEventVariables

Class ViewTableEventVariables.

Hierarchy

Expanded class hierarchy of ViewTableEventVariables

2 files declare their use of ViewTableEventVariables
OtherEventVariablesTest.php in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
ViewTablePreprocessEventFactory.php in modules/preprocess_event_dispatcher/src/Factory/ViewTablePreprocessEventFactory.php

File

modules/preprocess_event_dispatcher/src/Variables/ViewTableEventVariables.php, line 11

Namespace

Drupal\preprocess_event_dispatcher\Variables
View source
class ViewTableEventVariables extends AbstractEventVariables {

  /**
   * Get the row.
   *
   * @return \Drupal\views\ResultRow
   *   Row.
   */
  public function getRows() : ResultRow {
    return $this->variables['rows'];
  }

  /**
   * Get the view.
   *
   * @return \Drupal\views\ViewExecutable
   *   View.
   */
  public function getView() : ViewExecutable {
    return $this->variables['view'];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractEventVariables::$variables protected property Variables.
AbstractEventVariables::get public function Get a variable with a given name, return default if it does not exist. 1
AbstractEventVariables::getByReference public function Get a variable with a given name by reference. 1
AbstractEventVariables::remove public function Remove a given variable. 1
AbstractEventVariables::set public function Set a variable to a given value. 1
AbstractEventVariables::__construct public function Event Variables constructor.
ViewTableEventVariables::getRows public function Get the row.
ViewTableEventVariables::getView public function Get the view.