You are here

public function VariantBase::label in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Display/VariantBase.php \Drupal\Core\Display\VariantBase::label()
  2. 10 core/lib/Drupal/Core/Display/VariantBase.php \Drupal\Core\Display\VariantBase::label()

Returns the user-facing display variant label.

Return value

string The display variant label.

Overrides VariantInterface::label

1 call to VariantBase::label()
VariantBase::buildConfigurationForm in core/lib/Drupal/Core/Display/VariantBase.php
Form constructor.

File

core/lib/Drupal/Core/Display/VariantBase.php, line 36

Class

VariantBase
Provides a base class for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

public function label() {
  return $this->configuration['label'];
}