You are here

final class FormPreprocessEventFactory in Hook Event Dispatcher 8

Class FormPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of FormPreprocessEventFactory

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

File

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

Namespace

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

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

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

}

Members

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