function ImageEffect::__construct

Same name and namespace in other branches
  1. 11.x core/modules/image/src/Attribute/ImageEffect.php \Drupal\image\Attribute\ImageEffect::__construct()

Constructs an ImageEffect attribute.

Parameters

string $id: The plugin ID.

\Drupal\Core\StringTranslation\TranslatableMarkup $label: The human-readable name of the image effect.

\Drupal\Core\StringTranslation\TranslatableMarkup|null $description: (optional) A brief description of the image effect. This will be shown when adding or configuring this image effect.

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

Overrides Plugin::__construct

File

core/modules/image/src/Attribute/ImageEffect.php, line 43

Class

ImageEffect
Defines an ImageEffect attribute for plugin discovery.

Namespace

Drupal\image\Attribute

Code

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

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