You are here

protected function TypeStyleModeration::getStyleName in Type Style 8

Gets the style name for this field.

Return value

string The style name.

Overrides TypeStyle::getStyleName

1 call to TypeStyleModeration::getStyleName()
TypeStyleModeration::render in modules/type_style_moderation/src/Plugin/views/field/TypeStyleModeration.php
Renders the field.

File

modules/type_style_moderation/src/Plugin/views/field/TypeStyleModeration.php, line 23

Class

TypeStyleModeration
A handler to output and arbitrary type style.

Namespace

Drupal\type_style_moderation\Plugin\views\field

Code

protected function getStyleName() {
  return str_replace('moderation_state_type_style_', '', $this->realField);
}