diff --git a/src/Controller/IconDisplayController.php b/src/Controller/IconDisplayController.php new file mode 100644 index 0000000..44258ab --- /dev/null +++ b/src/Controller/IconDisplayController.php @@ -0,0 +1,39 @@ +getIconsets(); + foreach ($iconsets as $iconset_id=>$label) { + $iconset = \Drupal::service('strategy.manager.iconset')->getInstance($iconset_id); + $icons = $iconset->getIcons(); + $build[] = [ + '#type' => 'html_tag', + '#tag' => 'h2', + '#value' => $label, +]; + foreach ($icons as $icon_id => $icon) { + $build[] = $iconset->build($icon_id); + } +} + return $build; + } + +} diff --git a/src/Plugin/IconHandler/CustomIconHandler.php b/src/Plugin/IconHandler/CustomIconHandler.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/src/Plugin/IconHandler/CustomIconHandler.php @@ -0,0 +1 @@ +