function claro_preprocess_file_managed_file
Same name in other branches
- 9 core/themes/claro/claro.theme \claro_preprocess_file_managed_file()
- 10 core/themes/claro/claro.theme \claro_preprocess_file_managed_file()
- 11.x core/themes/claro/claro.theme \claro_preprocess_file_managed_file()
Implements hook_preprocess_HOOK() for file_managed_file.
File
-
core/
themes/ claro/ claro.theme, line 1094
Code
function claro_preprocess_file_managed_file(&$variables) {
// Produce the same renderable element structure as image widget has.
$child_keys = Element::children($variables['element']);
foreach ($child_keys as $child_key) {
$variables['data'][$child_key] = $variables['element'][$child_key];
}
_claro_preprocess_file_and_image_widget($variables);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.