public function VariantBase::label in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Display/VariantBase.php \Drupal\Core\Display\VariantBase::label()
- 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\DisplayCode
public function label() {
return $this->configuration['label'];
}