You are here

final class EckEntityPreprocessEventFactory in Hook Event Dispatcher 8

Class EckEntityPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of EckEntityPreprocessEventFactory

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

File

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

Namespace

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

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

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

}

Members

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