You are here

function hook_event_dispatcher_themes_installed in Hook Event Dispatcher 8

Implements hook_themes_installed().

1 call to hook_event_dispatcher_themes_installed()
ThemesInstalledEventTest::testThemesInstalledEvent in tests/src/Unit/Theme/ThemesInstalledEventTest.php
Themes installed event test.

File

./hook_event_dispatcher.module, line 679
Hook event dispatcher module.

Code

function hook_event_dispatcher_themes_installed(array $themeList) {

  /** @var \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface $manager */
  $manager = \Drupal::service('hook_event_dispatcher.manager');
  $manager
    ->register(new ThemesInstalledEvent($themeList));
}