final class ImagePreprocessEventFactory in Hook Event Dispatcher 8
Class ImagePreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\ImagePreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of ImagePreprocessEventFactory
1 string reference to 'ImagePreprocessEventFactory'
1 service uses ImagePreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ ImagePreprocessEventFactory.php, line 11
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class ImagePreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) {
return new ImagePreprocessEvent(new ImageEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() {
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:: |