You are here

class ThemesInstalledEvent in Hook Event Dispatcher 8

Class ThemesInstalledEvent.

Hierarchy

Expanded class hierarchy of ThemesInstalledEvent

1 file declares its use of ThemesInstalledEvent
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.

File

src/Event/Theme/ThemesInstalledEvent.php, line 12

Namespace

Drupal\hook_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() {
    return $this->themeList;
  }

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    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.