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