You are here

public function ThemeEvent::addNewThemes in Hook Event Dispatcher 8

Add new themes.

Have a look at the return statement.

Parameters

array $themes: The new theme information.

Throws

\RuntimeException

See also

\hook_theme()

File

src/Event/Theme/ThemeEvent.php, line 107

Class

ThemeEvent
Class ThemeEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Theme

Code

public function addNewThemes(array $themes) {
  foreach ($themes as $theme => $information) {
    $this
      ->addNewTheme($theme, $information);
  }
}