protected function Identifier::getCss in Markdown 8.2
Retrieves the CSS sanitized variation of the identifier.
Return value
string The CSS variation of the identifier.
File
- src/
Annotation/ Identifier.php, line 168
Class
- Identifier
- Creates an identifier for use in annotation objects.
Namespace
Drupal\markdown\AnnotationCode
protected function getCss() {
if (!isset($this->css)) {
$this->css = strtr($this
->getSnakeCase(), '_', '-');
}
return $this->css;
}