You are here

final class ViewFieldPreprocessEventFactory in Hook Event Dispatcher 8

Class ViewFieldPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of ViewFieldPreprocessEventFactory

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

File

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

Namespace

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

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

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

}

Members

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