Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Preprocessor Plugins

Preprocessor Plugins grants developers the ability to create Plugins to house preprocessing logic for templates. They are a replacement and alternative to hook_preprocess_HOOK() functions.

Using Preprocessor Plugins In Themes

Learn how to create Preprocessor Plugins in themes and convert your existing hooks.

Using Preprocessor Plugins In Modules

Learn how to create Preprocessor Plugins in custom modules and convert your existing hooks.

Plugin Properties

Learn about the various plugin properties and their usages.

Dependency Injection

Learn how to inject service dependencies into your Preprocessor plugins.

Loading Algorithm

Learn the algorithm that affects which plugins are loaded and in what order.

Guide maintainers

ksere's picture