You are here

PreprocessEventFactoryInterface.php in Hook Event Dispatcher 8

File

src/Event/Preprocess/Factory/PreprocessEventFactoryInterface.php
View source
<?php

namespace Drupal\hook_event_dispatcher\Event\Preprocess\Factory;


/**
 * Interface PreprocessEventFactoryInterface.
 */
interface PreprocessEventFactoryInterface {

  /**
   * Create the PreprocessEvent with the Variables object embedded.
   *
   * @param array $variables
   *   Variables.
   *
   * @return \Drupal\hook_event_dispatcher\Event\Preprocess\AbstractPreprocessEvent
   *   Created event.
   */
  public function createEvent(array &$variables);

  /**
   * Get the Event hook name.
   *
   * @return string
   *   The hook name.
   */
  public function getEventHook();

}

Interfaces

Namesort descending Description
PreprocessEventFactoryInterface Interface PreprocessEventFactoryInterface.