function olivero_element_info_alter
Same name in other branches
- 10 core/themes/olivero/olivero.theme \olivero_element_info_alter()
- 11.x core/themes/olivero/olivero.theme \olivero_element_info_alter()
Implements hook_element_info_alter().
File
-
core/
themes/ olivero/ olivero.theme, line 542
Code
function olivero_element_info_alter(&$info) {
if (array_key_exists('text_format', $info)) {
$info['text_format']['#pre_render'][] = [
OliveroPreRender::class,
'textFormat',
];
}
if (isset($info['status_messages'])) {
$info['status_messages']['#pre_render'][] = [
OliveroPreRender::class,
'messagePlaceholder',
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.