You are here

final class StatusMessagesPreprocessEventFactory in Hook Event Dispatcher 8

Class StatusMessagesPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of StatusMessagesPreprocessEventFactory

1 string reference to 'StatusMessagesPreprocessEventFactory'
hook_event_dispatcher.services.yml in ./hook_event_dispatcher.services.yml
hook_event_dispatcher.services.yml
1 service uses StatusMessagesPreprocessEventFactory
preprocess_event.factory.status_messages in ./hook_event_dispatcher.services.yml
Drupal\hook_event_dispatcher\Event\Preprocess\Factory\StatusMessagesPreprocessEventFactory

File

src/Event/Preprocess/Factory/StatusMessagesPreprocessEventFactory.php, line 11

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Factory
View source
final class StatusMessagesPreprocessEventFactory implements PreprocessEventFactoryInterface {

  /**
   * {@inheritdoc}
   */
  public function createEvent(array &$variables) {
    return new StatusMessagesPreprocessEvent(new StatusMessagesEventVariables($variables));
  }

  /**
   * {@inheritdoc}
   */
  public function getEventHook() {
    return StatusMessagesPreprocessEvent::getHook();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StatusMessagesPreprocessEventFactory::createEvent public function Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface::createEvent
StatusMessagesPreprocessEventFactory::getEventHook public function Get the Event hook name. Overrides PreprocessEventFactoryInterface::getEventHook