You are here

public function IconsetInterface::getIconPath in Social Media Links Block and Field 8.2

Return the path of an icon for the given platform (iconName) and style.

Parameters

string $icon_name: The name of the icon/platform.

string $style: The style/size.

Return value

string The path to the icon of a platform.

1 call to IconsetInterface::getIconPath()
IconsetBase::getIconElement in src/IconsetBase.php
Get the iconset element.
3 methods override IconsetInterface::getIconPath()
ElegantThemes::getIconPath in src/Plugin/SocialMediaLinks/Iconset/ElegantThemes.php
Return the path of an icon for the given platform (iconName) and style.
FontAwesome::getIconPath in src/Plugin/SocialMediaLinks/Iconset/FontAwesome.php
Return the path of an icon for the given platform (iconName) and style.
Nouveller::getIconPath in src/Plugin/SocialMediaLinks/Iconset/Nouveller.php
Return the path of an icon for the given platform (iconName) and style.

File

src/IconsetInterface.php, line 63

Class

IconsetInterface
Defines an interface for social media links iconset plugins.

Namespace

Drupal\social_media_links

Code

public function getIconPath($icon_name, $style);