function Registry::getPreprocessForSuggestions
Returns discovered preprocess suggestions.
Return value
array<string, true> Preprocess suggestions discovered in modules.
1 call to Registry::getPreprocessForSuggestions()
- Registry::getPrefixGroupedUserFunctions in core/
lib/ Drupal/ Core/ Theme/ Registry.php - Gets all user functions grouped by the word before the first underscore.
File
-
core/
lib/ Drupal/ Core/ Theme/ Registry.php, line 992
Class
- Registry
- Defines the theme registry service.
Namespace
Drupal\Core\ThemeCode
protected function getPreprocessForSuggestions() : array {
if ($this->preprocessForSuggestions === NULL) {
$this->preprocessForSuggestions = $this->keyValueFactory
->get('hook_data')
->get('preprocess_for_suggestions') ?: [];
}
return $this->preprocessForSuggestions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.