function VariantInterface::id

Same name in other branches
  1. 9 core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::id()
  2. 8.9.x core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::id()
  3. 10 core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::id()

Returns the unique ID for the display variant.

Return value

string The display variant ID.

1 method overrides VariantInterface::id()
VariantBase::id in core/lib/Drupal/Core/Display/VariantBase.php
Returns the unique ID for the display variant.

File

core/lib/Drupal/Core/Display/VariantInterface.php, line 46

Class

VariantInterface
Provides an interface for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

public function id();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.