You are here

public function VariantBase::id in Drupal 8

Same name and namespace in other branches
  1. 9 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'];
}