You are here

final class EckEntityPreprocessEventFactory in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Factory/EckEntityPreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\EckEntityPreprocessEventFactory

Class EckEntityPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of EckEntityPreprocessEventFactory

1 string reference to 'EckEntityPreprocessEventFactory'
preprocess_event_dispatcher.services.yml in modules/preprocess_event_dispatcher/preprocess_event_dispatcher.services.yml
modules/preprocess_event_dispatcher/preprocess_event_dispatcher.services.yml
1 service uses EckEntityPreprocessEventFactory
preprocess_event.factory.eck_entity in modules/preprocess_event_dispatcher/preprocess_event_dispatcher.services.yml
Drupal\preprocess_event_dispatcher\Factory\EckEntityPreprocessEventFactory

File

modules/preprocess_event_dispatcher/src/Factory/EckEntityPreprocessEventFactory.php, line 12

Namespace

Drupal\preprocess_event_dispatcher\Factory
View source
final class EckEntityPreprocessEventFactory implements PreprocessEventFactoryInterface {

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

  /**
   * {@inheritdoc}
   */
  public function getEventHook() : string {
    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