You are here

public function WorkflowTypeBase::label in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::label()

Gets the label for the workflow type.

Return value

string The workflow type label.

Overrides WorkflowTypeInterface::label

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 39

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function label() {
  $definition = $this
    ->getPluginDefinition();

  // The label can be an object.
  // @see \Drupal\Core\StringTranslation\TranslatableMarkup
  return $definition['label'];
}