final class CommentPreprocessEventFactory in Hook Event Dispatcher 8
Class CommentPreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\CommentPreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of CommentPreprocessEventFactory
1 string reference to 'CommentPreprocessEventFactory'
1 service uses CommentPreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ CommentPreprocessEventFactory.php, line 11
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class CommentPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) {
return new CommentPreprocessEvent(new CommentEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() {
return CommentPreprocessEvent::getHook();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommentPreprocessEventFactory:: |
public | function |
Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: |
|
CommentPreprocessEventFactory:: |
public | function |
Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |