You are here

ThemesInstalledEvent.php in Hook Event Dispatcher 8.2

File

modules/core_event_dispatcher/src/Event/Theme/ThemesInstalledEvent.php
View source
<?php

namespace Drupal\core_event_dispatcher\Event\Theme;

use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Class ThemesInstalledEvent.
 */
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;
  }

}

Classes

Namesort descending Description
ThemesInstalledEvent Class ThemesInstalledEvent.