Registry::PREPROCESS_INVOKES

A common key for storing preprocess invoke locations for modules.

This is used to create a lookup for module preprocess implementations for being invoked in ThemeManager. The keys are a string representing the module and preprocess hook. The value is an array with the keys module and preprocess. This supports invoking preprocess hooks implemented using #[Preprocess] attributes or procedural functions.

File

core/lib/Drupal/Core/Theme/Registry.php, line 40

Class

Registry
Defines the theme registry service.

Namespace

Drupal\Core\Theme

Code

private const PREPROCESS_INVOKES = 'preprocess invokes';

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