final class BlockPreprocessEventFactory in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Factory/BlockPreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\BlockPreprocessEventFactory
Class BlockPreprocessEventFactory.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Factory\BlockPreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of BlockPreprocessEventFactory
1 string reference to 'BlockPreprocessEventFactory'
- preprocess_event_dispatcher.services.yml in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - modules/preprocess_event_dispatcher/preprocess_event_dispatcher.services.yml
1 service uses BlockPreprocessEventFactory
- preprocess_event.factory.block in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - Drupal\preprocess_event_dispatcher\Factory\BlockPreprocessEventFactory
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ BlockPreprocessEventFactory.php, line 12
Namespace
Drupal\preprocess_event_dispatcher\FactoryView source
final class BlockPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new BlockPreprocessEvent(new BlockEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() : string {
return BlockPreprocessEvent::getHook();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockPreprocessEventFactory:: |
public | function |
Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: |
|
BlockPreprocessEventFactory:: |
public | function |
Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |