You are here

final class ViewTablePreprocessEventFactory in Hook Event Dispatcher 8

Class ViewTablePreprocessEventFactory.

Hierarchy

Expanded class hierarchy of ViewTablePreprocessEventFactory

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

File

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

Namespace

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

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

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

}

Members

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