interface PreprocessEventFactoryInterface in Hook Event Dispatcher 8
Interface PreprocessEventFactoryInterface.
Hierarchy
- interface \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\PreprocessEventFactoryInterface
Expanded class hierarchy of PreprocessEventFactoryInterface
All classes that implement PreprocessEventFactoryInterface
3 files declare their use of PreprocessEventFactoryInterface
- ExamplePreprocessEventFactory.php in src/
Example/ preprocess_example_module/ src/ Event/ Factory/ ExamplePreprocessEventFactory.php - FakePreprocessEventFactory.php in tests/
src/ Unit/ Preprocess/ Helpers/ FakePreprocessEventFactory.php - PreprocessEventFactoryMapper.php in src/
Service/ PreprocessEventFactoryMapper.php
File
- src/
Event/ Preprocess/ Factory/ PreprocessEventFactoryInterface.php, line 8
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
interface PreprocessEventFactoryInterface {
/**
* Create the PreprocessEvent with the Variables object embedded.
*
* @param array $variables
* Variables.
*
* @return \Drupal\hook_event_dispatcher\Event\Preprocess\AbstractPreprocessEvent
* Created event.
*/
public function createEvent(array &$variables);
/**
* Get the Event hook name.
*
* @return string
* The hook name.
*/
public function getEventHook();
}
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 |