abstract class BaseThemeSuggestionsEvent in Hook Event Dispatcher 8
Class BaseThemeSuggestionsEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Theme\BaseThemeSuggestionsEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of BaseThemeSuggestionsEvent
File
- src/
Event/ Theme/ BaseThemeSuggestionsEvent.php, line 11
Namespace
Drupal\hook_event_dispatcher\Event\ThemeView source
abstract class BaseThemeSuggestionsEvent extends Event implements EventInterface {
/**
* Array of suggestions.
*
* @var array
*/
protected $suggestions;
/**
* Variables.
*
* @var array
*/
protected $variables;
/**
* Hook name.
*
* @var string
*/
protected $hook;
/**
* BaseThemeSuggestionsEvent constructor.
*
* @param array $suggestions
* Suggestions.
* @param array $variables
* Variables.
* @param string $hook
* Hook name.
*/
public function __construct(array &$suggestions, array $variables, $hook) {
$this->suggestions =& $suggestions;
$this->variables = $variables;
$this->hook = $hook;
}
/**
* Get suggestions.
*
* @return array
* Array of suggestions.
*/
public function &getSuggestions() {
return $this->suggestions;
}
/**
* Set suggestions.
*
* @param array $suggestions
* Array of suggestions.
*/
public function setSuggestions(array $suggestions) {
$this->suggestions = $suggestions;
}
/**
* Get variables.
*
* @return array
* Array of variables.
*/
public function getVariables() {
return $this->variables;
}
/**
* Get hook.
*
* @return string
* Name of the hook.
*/
public function getHook() {
return $this->hook;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseThemeSuggestionsEvent:: |
protected | property | Hook name. | |
BaseThemeSuggestionsEvent:: |
protected | property | Array of suggestions. | |
BaseThemeSuggestionsEvent:: |
protected | property | Variables. | |
BaseThemeSuggestionsEvent:: |
public | function | Get hook. | |
BaseThemeSuggestionsEvent:: |
public | function | Get suggestions. | |
BaseThemeSuggestionsEvent:: |
public | function | Get variables. | |
BaseThemeSuggestionsEvent:: |
public | function | Set suggestions. | |
BaseThemeSuggestionsEvent:: |
public | function | BaseThemeSuggestionsEvent constructor. | |
EventInterface:: |
public | function | Get the dispatcher type. | 66 |