* Code required only when rendering the available updates report.
*/
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Template\Attribute;
use Drupal\Core\Url;
'library' => [
'update/drupal.update.admin',
],
- ]
+ ],
];
// For no project update data, populate no data message.
'#attributes' => ['class' => ['update']],
];
}
- $row_key = !empty($project['title']) ? Unicode::strtolower($project['title']) : Unicode::strtolower($project['name']);
+ $row_key = !empty($project['title']) ? mb_strtolower($project['title']) : mb_strtolower($project['name']);
// Add the project status row and details.
$rows[$project['project_type']][$row_key]['status'] = $project_status;
$extra_item['data'] = [
'#prefix' => '<em>',
'#markup' => $value['data'],
- '#suffix' => '</em>'
+ '#suffix' => '</em>',
];
$variables['extras'][] = $extra_item;
}