class ImageAPIOptimizeProcessor in Image Optimize (or ImageAPI Optimize) 8.3
Same name and namespace in other branches
- 8.2 src/Annotation/ImageAPIOptimizeProcessor.php \Drupal\imageapi_optimize\Annotation\ImageAPIOptimizeProcessor
- 4.x src/Annotation/ImageAPIOptimizeProcessor.php \Drupal\imageapi_optimize\Annotation\ImageAPIOptimizeProcessor
Defines an image optimize processor annotation object.
Plugin Namespace: Plugin\ImageAPIOptimizeProcessor.
For a working example, see \Drupal\imageapi_optimize\Plugin\ImageAPIOptimizeProcessor\reSmushit
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\imageapi_optimize\Annotation\ImageAPIOptimizeProcessor
Expanded class hierarchy of ImageAPIOptimizeProcessor
See also
hook_imageapi_optimize_processor_info_alter()
\Drupal\imageapi_optimize\ConfigurableImageAPIOptimizeProcessorInterface
\Drupal\imageapi_optimize\ConfigurableImageAPIOptimizeProcessorBase
\Drupal\imageapi_optimize\ImageAPIOptimizePipelineInterface
\Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase
\Drupal\imageapi_optimize\ImageAPIOptimizeProcessorManager
3 classes are annotated with ImageAPIOptimizeProcessor
- TestProcessorAppendCharacters in tests/
module/ imageapi_optimize_module_test/ src/ Plugin/ ImageAPIOptimizeProcessor/ TestProcessorAppendCharacters.php - Optimizes an image by making it 10 characters longer.
- TestProcessorBlackPNG in tests/
module/ imageapi_optimize_module_test/ src/ Plugin/ ImageAPIOptimizeProcessor/ TestProcessorBlackPNG.php - Optimizes an image by making it a 1x1 pixel black PNG.
- TestProcessorFailedGreenPNG in tests/
module/ imageapi_optimize_module_test/ src/ Plugin/ ImageAPIOptimizeProcessor/ TestProcessorFailedGreenPNG.php - Optimizes an image by making it a 1x1 pixel green PNG, but then failing.
File
- src/
Annotation/ ImageAPIOptimizeProcessor.php, line 25
Namespace
Drupal\imageapi_optimize\AnnotationView source
class ImageAPIOptimizeProcessor extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the image optimize processor.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* A brief description of the image optimize processor.
*
* This will be shown when adding or configuring this image optimize processor.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $description = '';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImageAPIOptimizeProcessor:: |
public | property | A brief description of the image optimize processor. | |
ImageAPIOptimizeProcessor:: |
public | property | The plugin ID. | |
ImageAPIOptimizeProcessor:: |
public | property | The human-readable name of the image optimize processor. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |