public function PreProcess::__construct in Field Formatter Template 8
Same name and namespace in other branches
- 8.2 src/Event/PreProcess.php \Drupal\fft\Event\PreProcess::__construct()
PreProcess constructor.
Parameters
string $template: The template file.
array $variables: The variables.
File
- src/
Event/ PreProcess.php, line 41
Class
- PreProcess
- Class PreProcess.
Namespace
Drupal\fft\EventCode
public function __construct($template, array &$variables) {
$this->variables =& $variables;
$this->template = basename($template);
}