function lightning_core_preprocess_block in Lightning Core 8.4
Same name and namespace in other branches
- 8.5 lightning_core.module \lightning_core_preprocess_block()
- 8 lightning_core.module \lightning_core_preprocess_block()
- 8.2 lightning_core.module \lightning_core_preprocess_block()
- 8.3 lightning_core.module \lightning_core_preprocess_block()
Implements template_preprocess_block().
File
- ./
lightning_core.module, line 259 - Contains core functionality for the Lightning distribution.
Code
function lightning_core_preprocess_block(array &$variables) {
$variables['attributes']['data-block-plugin-id'] = $variables['elements']['#plugin_id'];
}