function ThemeRegistry::getGlobalPreprocess

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::getGlobalPreprocess()

Gets global preprocess callbacks.

@internal

Return value

array An array of preprocess callbacks that should be called for every theme hook.

File

core/lib/Drupal/Core/Utility/ThemeRegistry.php, line 192

Class

ThemeRegistry
Builds the run-time theme registry.

Namespace

Drupal\Core\Utility

Code

public function getGlobalPreprocess() : array {
  return $this->get('global preprocess') ?? [];
}

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