function ImageToolkit::__construct

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

Constructs a plugin attribute object.

Parameters

string $id: The attribute class ID.

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

Overrides Plugin::__construct

File

core/lib/Drupal/Core/ImageToolkit/Attribute/ImageToolkit.php, line 30

Class

ImageToolkit
Defines a Plugin attribute for the image toolkit plugin.

Namespace

Drupal\Core\ImageToolkit\Attribute

Code

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

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