Prepares variables for a custom block type creation list templates.
Default template: custom-block-add-list.html.twig.
array $variables: An associative array containing:
custom_block_add_page()
function template_preprocess_custom_block_add_list(&$variables) {
$variables['types'] = array();
foreach ($variables['content'] as $type) {
$variables['types'][$type->id] = array();
$variables['types'][$type->id]['link'] = l($type
->label(), 'block/add/' . $type
->id());
$variables['types'][$type->id]['description'] = filter_xss_admin($type->description);
}
}