ImageEffect.php

Same filename in this branch
  1. 11.x core/modules/image/src/Attribute/ImageEffect.php
Same filename in other branches
  1. 9 core/modules/image/src/Annotation/ImageEffect.php
  2. 8.9.x core/modules/image/src/Annotation/ImageEffect.php
  3. 10 core/modules/image/src/Attribute/ImageEffect.php
  4. 10 core/modules/image/src/Annotation/ImageEffect.php

Namespace

Drupal\image\Annotation

File

core/modules/image/src/Annotation/ImageEffect.php

View source
<?php

namespace Drupal\image\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an image effect annotation object.
 *
 * Plugin Namespace: Plugin\ImageEffect
 *
 * For a working example, see
 * \Drupal\image\Plugin\ImageEffect\ResizeImageEffect
 *
 * @see hook_image_effect_info_alter()
 * @see \Drupal\image\ConfigurableImageEffectInterface
 * @see \Drupal\image\ConfigurableImageEffectBase
 * @see \Drupal\image\ImageEffectInterface
 * @see \Drupal\image\ImageEffectBase
 * @see \Drupal\image\ImageEffectManager
 * @see \Drupal\Core\ImageToolkit\Annotation\ImageToolkitOperation
 * @see plugin_api
 *
 * @Annotation
 */
class ImageEffect extends Plugin {
    
    /**
     * The plugin ID.
     *
     * @var string
     */
    public $id;
    
    /**
     * The human-readable name of the image effect.
     *
     * @var \Drupal\Core\Annotation\Translation
     *
     * @ingroup plugin_translatable
     */
    public $label;
    
    /**
     * A brief description of the image effect.
     *
     * This property is optional and it does not need to be declared.
     *
     * This will be shown when adding or configuring this image effect.
     *
     * @var \Drupal\Core\Annotation\Translation
     *
     * @ingroup plugin_translatable
     */
    public $description = '';

}

Classes

Title Deprecated Summary
ImageEffect Defines an image effect annotation object.

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