You are here

public function VariantBase::id in Drupal 9

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

Returns the unique ID for the display variant.

Return value

string The display variant ID.

Overrides VariantInterface::id

File

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

Class

VariantBase
Provides a base class for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

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