function DisplayVariant::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Display/Attribute/DisplayVariant.php \Drupal\Core\Display\Attribute\DisplayVariant::__construct()

Constructs a DisplayVariant plugin attribute object.

Parameters

string $id: The plugin ID.

\Drupal\Core\StringTranslation\TranslatableMarkup $admin_label: The administrative label.

class-string|null $deriver: (optional) The deriver class.

Overrides Plugin::__construct

File

core/lib/Drupal/Core/Display/Attribute/DisplayVariant.php, line 44

Class

DisplayVariant
Defines a display variant attribute object.

Namespace

Drupal\Core\Display\Attribute

Code

public function __construct(string $id, TranslatableMarkup $admin_label, ?string $deriver = NULL) {
}

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