You are here

public function PlatformBase::getIconName in Social Media Links Block and Field 8.2

Return the name of the icon.

In most cases, the icon name is the id of the platform.

Return value

string The name of the icon for the platform.

Overrides PlatformInterface::getIconName

File

src/PlatformBase.php, line 43

Class

PlatformBase
Base class for platform.

Namespace

Drupal\social_media_links

Code

public function getIconName() {
  return !empty($this->pluginDefinition['iconName']) ? $this->pluginDefinition['iconName'] : $this->pluginDefinition['id'];
}