protected function TypeStyle::getStyleName in Type Style 8
Gets the style name for this field.
Return value
string The style name.
2 calls to TypeStyle::getStyleName()
- TypeStyle::postRender in src/
Plugin/ views/ field/ TypeStyle.php - Runs after every field has been rendered.
- TypeStyle::render in src/
Plugin/ views/ field/ TypeStyle.php - Renders the field.
1 method overrides TypeStyle::getStyleName()
- TypeStyleModeration::getStyleName in modules/
type_style_moderation/ src/ Plugin/ views/ field/ TypeStyleModeration.php - Gets the style name for this field.
File
- src/
Plugin/ views/ field/ TypeStyle.php, line 47
Class
- TypeStyle
- A handler to output and arbitrary type style.
Namespace
Drupal\type_style\Plugin\views\fieldCode
protected function getStyleName() {
if ($this->realField !== 'type_style') {
$style_name = str_replace('type_style_', '', $this->realField);
}
else {
$style_name = $this->options['type_style_name'];
}
return $style_name;
}