You are here

function micon_template_preprocess_micon_package__image in Micon 8

Same name and namespace in other branches
  1. 2.x micon.theme.inc \micon_template_preprocess_micon_package__image()

Prepares variables for Micon package templates of type SVG.

File

./micon.theme.inc, line 133
Contains micon.theme.inc.

Code

function micon_template_preprocess_micon_package__image(array &$variables) {
  $micon = $variables['micon'];
  $variables['content']['icons'] = [
    '#theme' => 'fieldset',
    '#title' => t('Available SVGs'),
  ];
  $variables['content']['icons']['#children']['icons'] = [
    '#theme' => 'micon_icon_list',
    '#micon' => $micon,
  ];
}