PreprocessEventFactoryInterface.php in Hook Event Dispatcher 3.x
Same filename and directory in other branches
File
modules/preprocess_event_dispatcher/src/Factory/PreprocessEventFactoryInterface.phpView source
<?php
namespace Drupal\preprocess_event_dispatcher\Factory;
use Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent;
/**
* Interface PreprocessEventFactoryInterface.
*/
interface PreprocessEventFactoryInterface {
/**
* Create the PreprocessEvent with the Variables object embedded.
*
* @param array $variables
* Variables.
*
* @return \Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent
* Created event.
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent;
/**
* Get the Event hook name.
*
* @return string
* The hook name.
*/
public function getEventHook() : string;
}
Interfaces
Name | Description |
---|---|
PreprocessEventFactoryInterface | Interface PreprocessEventFactoryInterface. |