ViewFieldEventVariables.php in Hook Event Dispatcher 8.2
File
modules/preprocess_event_dispatcher/src/Variables/ViewFieldEventVariables.php
View source
<?php
namespace Drupal\preprocess_event_dispatcher\Variables;
use Drupal\views\Plugin\views\field\FieldHandlerInterface;
use Drupal\views\Plugin\views\field\Markup;
use Drupal\views\ResultRow;
use Drupal\views\ViewExecutable;
class ViewFieldEventVariables extends AbstractEventVariables {
public function getField() : FieldHandlerInterface {
return $this->variables['field'];
}
public function getOutput() : Markup {
return $this->variables['output'];
}
public function getRow() : ResultRow {
return $this->variables['row'];
}
public function getView() : ViewExecutable {
return $this->variables['view'];
}
}