interface PreprocessEventFactoryInterface in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Factory/PreprocessEventFactoryInterface.php \Drupal\preprocess_event_dispatcher\Factory\PreprocessEventFactoryInterface
Interface PreprocessEventFactoryInterface.
Hierarchy
- interface \Drupal\preprocess_event_dispatcher\Factory\PreprocessEventFactoryInterface
Expanded class hierarchy of PreprocessEventFactoryInterface
All classes that implement PreprocessEventFactoryInterface
3 files declare their use of PreprocessEventFactoryInterface
- ExamplePreprocessEventFactory.php in examples/
preprocess_example_module/ src/ Factory/ ExamplePreprocessEventFactory.php - FakePreprocessEventFactory.php in modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ Helpers/ FakePreprocessEventFactory.php - PreprocessEventFactoryMapper.php in modules/
preprocess_event_dispatcher/ src/ Service/ PreprocessEventFactoryMapper.php
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ PreprocessEventFactoryInterface.php, line 10
Namespace
Drupal\preprocess_event_dispatcher\FactoryView source
interface PreprocessEventFactoryInterface {
/**
* Create the PreprocessEvent with the Variables object embedded.
*
* @param array $variables
* Variables.
*
* @return \Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent
* Created event.
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent;
/**
* Get the Event hook name.
*
* @return string
* The hook name.
*/
public function getEventHook() : string;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PreprocessEventFactoryInterface:: |
public | function | Create the PreprocessEvent with the Variables object embedded. | 18 |
PreprocessEventFactoryInterface:: |
public | function | Get the Event hook name. | 18 |