Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageEffect.php

function 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) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal