ViewEventVariables.php in Hook Event Dispatcher 3.x
Same filename and directory in other branches
File
modules/preprocess_event_dispatcher/src/Variables/ViewEventVariables.phpView source
<?php
namespace Drupal\preprocess_event_dispatcher\Variables;
use Drupal\views\ViewExecutable;
/**
* Class ViewEventVariables.
*/
class ViewEventVariables extends AbstractEventVariables {
/**
* Get the rows.
*
* @return array
* Rows.
*/
public function &getRows() : array {
return $this->variables['rows'][0]['#rows'];
}
/**
* Get the view.
*
* @return \Drupal\views\ViewExecutable
* View.
*/
public function getView() : ViewExecutable {
return $this->variables['view'];
}
}
Classes
Name | Description |
---|---|
ViewEventVariables | Class ViewEventVariables. |