public function Micon::getStylesheet in Micon 8
Same name and namespace in other branches
- 2.x src/Entity/Micon.php \Drupal\micon\Entity\Micon::getStylesheet()
Return the stylesheet of the Micon package if it exists.
Return value
string The path to the IcoMoon style.css file.
Overrides MiconInterface::getStylesheet
File
- src/
Entity/ Micon.php, line 182
Class
- Micon
- Defines the Micon entity.
Namespace
Drupal\micon\EntityCode
public function getStylesheet() {
$path = $this
->getDirectory() . '/style.css';
return file_exists($path) ? $path : NULL;
}