You are here

public function IconsetFinderService::getPath in Social Media Links Block and Field 8.2

Get the path to a iconset.

Parameters

string $id: The id of the iconset.

Return value

string|null The path to the iconset or NULL if the iconset is not installed.

File

src/IconsetFinderService.php, line 51

Class

IconsetFinderService
Service class to detect the files of the iconsets/ in various directories.

Namespace

Drupal\social_media_links

Code

public function getPath($id) {
  return isset($this->iconsets[$id]) ? $this->iconsets[$id] : NULL;
}