function drupal_common_theme

Same name in other branches
  1. 7.x includes/common.inc \drupal_common_theme()
  2. 9 core/includes/theme.inc \drupal_common_theme()
  3. 8.9.x core/includes/theme.inc \drupal_common_theme()
  4. 10 core/includes/theme.inc \drupal_common_theme()

Provides theme registration for themes across .inc files.

Deprecated

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Theme\ThemeCommonElements::commonElements() instead,

See also

https://www.drupal.org/node/3488470

File

core/includes/theme.inc, line 1793

Code

function drupal_common_theme() : array {
    @trigger_error('drupal_common_theme() is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use \\Drupal\\Core\\Theme\\ThemeCommonElements::commonElements() instead. See https://www.drupal.org/node/3488470', E_USER_DEPRECATED);
    return ThemeCommonElements::commonElements();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.