FormPreprocessEventFactory.php in Hook Event Dispatcher 8
File
src/Event/Preprocess/Factory/FormPreprocessEventFactory.phpView source
<?php
namespace Drupal\hook_event_dispatcher\Event\Preprocess\Factory;
use Drupal\hook_event_dispatcher\Event\Preprocess\FormPreprocessEvent;
use Drupal\hook_event_dispatcher\Event\Preprocess\Variables\FormEventVariables;
/**
* Class FormPreprocessEventFactory.
*/
final class FormPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) {
return new FormPreprocessEvent(new FormEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() {
return FormPreprocessEvent::getHook();
}
}
Classes
Name![]() |
Description |
---|---|
FormPreprocessEventFactory | Class FormPreprocessEventFactory. |