drupal_theme_rebuild

drupal_theme_rebuild()

Forces the system to rebuild the theme registry.

This function should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks.

File

core/includes/theme.inc, line 120
The theme system, which controls the output of Drupal.

Code

function drupal_theme_rebuild() {
  \Drupal::service('theme.registry')->reset();
}
doc_Drupal
2016-10-29 09:03:21
Comments
Leave a Comment

Please login to continue.