protected function SocialMediaLinksFieldDefaultFormatter::getIconset in Social Media Links Block and Field 8.2
Get the iconset.
Parameters
string $iconset: The iconset id.
Return value
array $iconsets
1 call to SocialMediaLinksFieldDefaultFormatter::getIconset()
- SocialMediaLinksFieldDefaultFormatter::viewElements in modules/
social_media_links_field/ src/ Plugin/ Field/ FieldFormatter/ SocialMediaLinksFieldDefaultFormatter.php - Builds a renderable array for a field value.
File
- modules/
social_media_links_field/ src/ Plugin/ Field/ FieldFormatter/ SocialMediaLinksFieldDefaultFormatter.php, line 227
Class
- SocialMediaLinksFieldDefaultFormatter
- Plugin implementation of the 'social_media_links_field_default' formatter.
Namespace
Drupal\social_media_links_field\Plugin\Field\FieldFormatterCode
protected function getIconset($iconset) {
$iconsets = \Drupal::service('plugin.manager.social_media_links.iconset')
->getIconsets();
return $iconsets[$iconset];
}