You are here

public function ElegantThemes::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.

Overrides IconsetInterface::getIconPath

File

src/Plugin/SocialMediaLinks/Iconset/ElegantThemes.php, line 33

Class

ElegantThemes
Provides 'elegantthemes' iconset.

Namespace

Drupal\social_media_links\Plugin\SocialMediaLinks\Iconset

Code

public function getIconPath($icon_name, $style) {
  return $this->path . '/PNG/' . $icon_name . '.png';
}