ImageEffectInterface::getDerivativeExtension

public ImageEffectInterface::getDerivativeExtension($extension) Returns the extension the derivative would have have after applying this image effect. Parameters string $extension: The file extension the derivative has before applying. Return value string The file extension after applying. File core/modules/image/src/ImageEffectInterface.php, line 62 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function getDerivativeExtension(

ImageEffectInterface::applyEffect

public ImageEffectInterface::applyEffect(ImageInterface $image) Applies an image effect to the image object. Parameters \Drupal\Core\Image\ImageInterface $image: An image file object. Return value bool TRUE on success. FALSE if unable to perform the image effect on the image. File core/modules/image/src/ImageEffectInterface.php, line 30 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function applyEffect(ImageInterface $image);

ImageEffectInterface

Defines the interface for image effects. Hierarchy interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurablePluginInterfaceinterface \Drupal\image\ImageEffectInterface See also \Drupal\image\Annotation\ImageEffect \Drupal\image\ImageEffectBase \Drupal\image\ConfigurableImageEffectInterface \Drupal\image\ConfigurableImageEffectBase \Drupal\image\ImageEffectManager Plugin API File core/modules/image/src/ImageEffectInterface.php, line 19

ImageEffectBase::__construct

public ImageEffectBase::__construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger) Constructs a Drupal\Component\Plugin\PluginBase object. Parameters array $configuration: A configuration array containing information about the plugin instance. string $plugin_id: The plugin_id for the plugin instance. mixed $plugin_definition: The plugin implementation definition. Overrides PluginBase::__construct File core/modules/image/src/ImageEffectBase.php, line 46 Class

ImageEffectBase::transformDimensions

public ImageEffectBase::transformDimensions(array &$dimensions, $uri) Determines the dimensions of the styled image. Parameters array &$dimensions: Dimensions to be modified - an array with the following keys: width: the width in pixels, or NULL if unknown height: the height in pixels, or NULL if unknown When either of the dimensions are NULL, the corresponding HTML attribute will be omitted when an image style using this image effect is used. string $uri: Original image file URI.

ImageEffectBase::setWeight

public ImageEffectBase::setWeight($weight) Sets the weight for this image effect. Parameters int $weight: The weight for this image effect. Return value $this Overrides ImageEffectInterface::setWeight File core/modules/image/src/ImageEffectBase.php, line 115 Class ImageEffectBase Provides a base class for image effects. Namespace Drupal\image Code public function setWeight($weight) { $this->weight = $weight; return $this; }

ImageEffectBase::setConfiguration

public ImageEffectBase::setConfiguration(array $configuration) Sets the configuration for this plugin instance. Parameters array $configuration: An associative array containing the plugin's configuration. Overrides ConfigurablePluginInterface::setConfiguration File core/modules/image/src/ImageEffectBase.php, line 142 Class ImageEffectBase Provides a base class for image effects. Namespace Drupal\image Code public function setConfiguration(array $configuration) { $configuration += ar

ImageEffectBase::label

public ImageEffectBase::label() Returns the image effect label. Return value string The image effect label. Overrides ImageEffectInterface::label File core/modules/image/src/ImageEffectBase.php, line 101 Class ImageEffectBase Provides a base class for image effects. Namespace Drupal\image Code public function label() { return $this->pluginDefinition['label']; }

ImageEffectBase::getWeight

public ImageEffectBase::getWeight() Returns the weight of the image effect. Return value int|string Either the integer weight of the image effect, or an empty string. Overrides ImageEffectInterface::getWeight File core/modules/image/src/ImageEffectBase.php, line 123 Class ImageEffectBase Provides a base class for image effects. Namespace Drupal\image Code public function getWeight() { return $this->weight; }

ImageEffectBase::getUuid

public ImageEffectBase::getUuid() Returns the unique ID representing the image effect. Return value string The image effect ID. Overrides ImageEffectInterface::getUuid File core/modules/image/src/ImageEffectBase.php, line 108 Class ImageEffectBase Provides a base class for image effects. Namespace Drupal\image Code public function getUuid() { return $this->uuid; }