You are here

final class HtmlPreprocessEventFactory in Hook Event Dispatcher 8

Class HtmlPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of HtmlPreprocessEventFactory

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

File

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

Namespace

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

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

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

}

Members

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