You are here

ThemesInstalledEvent.php in Hook Event Dispatcher 8

File

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

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

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType() {
    return HookEventDispatcherInterface::THEMES_INSTALLED;
  }

}

Classes

Namesort descending Description
ThemesInstalledEvent Class ThemesInstalledEvent.