You are here

class ThemesInstalledEvent in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/Event/Theme/ThemesInstalledEvent.php \Drupal\core_event_dispatcher\Event\Theme\ThemesInstalledEvent

Class ThemesInstalledEvent.

Hierarchy

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\Theme
View 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

Namesort descending Modifiers Type Description Overrides
ThemesInstalledEvent::$themeList private property Theme list.
ThemesInstalledEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType
ThemesInstalledEvent::getThemeList public function Get theme list.
ThemesInstalledEvent::__construct public function ThemesInstalledEvent constructor.