class ThemesInstalledEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/src/Event/Theme/ThemesInstalledEvent.php \Drupal\core_event_dispatcher\Event\Theme\ThemesInstalledEvent
Class ThemesInstalledEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Theme\ThemesInstalledEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of ThemesInstalledEvent
1 file declares its use of ThemesInstalledEvent
- core_event_dispatcher.module in modules/
core_event_dispatcher/ core_event_dispatcher.module - Core event dispatcher submodule.
File
- modules/
core_event_dispatcher/ src/ Event/ Theme/ ThemesInstalledEvent.php, line 12
Namespace
Drupal\core_event_dispatcher\Event\ThemeView source
class ThemesInstalledEvent extends Event implements EventInterface {
/**
* Theme list.
*
* @var array
*/
private $themeList;
/**
* ThemesInstalledEvent constructor.
*
* @param array $themeList
* Array containing the names of the themes being installed.
*/
public function __construct(array $themeList) {
$this->themeList = $themeList;
}
/**
* Get theme list.
*
* @return array
* Theme list.
*/
public function getThemeList() : array {
return $this->themeList;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::THEMES_INSTALLED;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ThemesInstalledEvent:: |
private | property | Theme list. | |
ThemesInstalledEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
ThemesInstalledEvent:: |
public | function | Get theme list. | |
ThemesInstalledEvent:: |
public | function | ThemesInstalledEvent constructor. |