You are here

function seven_preprocess_admin_block_content in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/seven/seven.theme \seven_preprocess_admin_block_content()
  2. 9 core/themes/seven/seven.theme \seven_preprocess_admin_block_content()

Implements hook_preprocess_HOOK() for block admin page templates.

File

core/themes/seven/seven.theme, line 106
Functions to support theming in the Seven theme.

Code

function seven_preprocess_admin_block_content(&$variables) {
  if (!empty($variables['content'])) {
    foreach ($variables['content'] as $key => $item) {
      $variables['content'][$key]['url'] = $item['url']
        ->toString();
    }
  }
}