You are here

public function IconsetBase::setPath in Social Media Links Block and Field 8.2

Set the path for the given iconset.

Parameters

string $iconset_id: The id of the iconset.

1 call to IconsetBase::setPath()
IconsetBase::__construct in src/IconsetBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides IconsetBase::setPath()
FontAwesome::setPath in src/Plugin/SocialMediaLinks/Iconset/FontAwesome.php
Set the path for the given iconset.

File

src/IconsetBase.php, line 90

Class

IconsetBase
Base class for iconset.

Namespace

Drupal\social_media_links

Code

public function setPath($iconset_id) {
  $this->path = $this->finder
    ->getPath($iconset_id);
}