public function Micon::getStylesheet in Micon 2.x
Same name and namespace in other branches
- 8 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 189
Class
- Micon
- Defines the Micon entity.
Namespace
Drupal\micon\EntityCode
public function getStylesheet() {
$path = $this
->getDirectory() . '/style.css';
return file_exists($path) ? $path : NULL;
}