ImageStyleInterface::setName

public ImageStyleInterface::setName($name) Sets the name of the image style. Parameters string $name: The name of the image style. Return value \Drupal\image\ImageStyleInterface The class instance this method is called on. File core/modules/image/src/ImageStyleInterface.php, line 43 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function setName($name);

ImageStyleInterface::getReplacementID

public ImageStyleInterface::getReplacementID() Returns the replacement ID. Return value string|null The replacement image style ID or NULL if no replacement has been selected. Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.x. Use \Drupal\image\ImageStyleStorageInterface::getReplacementId() instead. See also \Drupal\image\ImageStyleStorageInterface::getReplacementId() File core/modules/image/src/ImageStyleInterface.php, line 24 Class ImageStyleInterface Provides an inter

ImageStyleInterface::getPathToken

public ImageStyleInterface::getPathToken($uri) Generates a token to protect an image style derivative. This prevents unauthorized generation of an image style derivative, which can be costly both in CPU time and disk space. Parameters string $uri: The URI of the original image of this style. Return value string An eight-character token which can be used to protect image style derivatives against denial-of-service attacks. File core/modules/image/src/ImageStyleInterface.php, line 91 Class

ImageStyleInterface::getName

public ImageStyleInterface::getName() Returns the image style. Return value string The name of the image style. File core/modules/image/src/ImageStyleInterface.php, line 32 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function getName();

ImageStyleInterface::getEffects

public ImageStyleInterface::getEffects() Returns the image effects for this style. Return value \Drupal\image\ImageEffectPluginCollection|\Drupal\image\ImageEffectInterface[] The image effect plugin collection. File core/modules/image/src/ImageStyleInterface.php, line 174 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function getEffects();

ImageStyleInterface::getEffect

public ImageStyleInterface::getEffect($effect) Returns a specific image effect. Parameters string $effect: The image effect ID. Return value \Drupal\image\ImageEffectInterface The image effect object. File core/modules/image/src/ImageStyleInterface.php, line 166 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function getEffect($effect);

ImageStyleInterface::getDerivativeExtension

public ImageStyleInterface::getDerivativeExtension($extension) Determines the extension of the derivative without generating it. Parameters string $extension: The file extension of the original image. Return value string The extension the derivative image will have, given the extension of the original. File core/modules/image/src/ImageStyleInterface.php, line 155 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public functio

ImageStyleInterface::flush

public ImageStyleInterface::flush($path = NULL) Flushes cached media for this style. Parameters string $path: (optional) The original image path or URI. If it's supplied, only this image derivative will be flushed. Return value $this File core/modules/image/src/ImageStyleInterface.php, line 102 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function flush($path = NULL);

ImageStyleInterface::deleteImageEffect

public ImageStyleInterface::deleteImageEffect(ImageEffectInterface $effect) Deletes an image effect from this style. Parameters \Drupal\image\ImageEffectInterface $effect: The image effect object. Return value $this File core/modules/image/src/ImageStyleInterface.php, line 195 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function deleteImageEffect(ImageEffectInterface $effect);

ImageStyleInterface::createDerivative

public ImageStyleInterface::createDerivative($original_uri, $derivative_uri) Creates a new image derivative based on this image style. Generates an image derivative applying all image effects and saving the resulting image. Parameters string $original_uri: Original image file URI. string $derivative_uri: Derivative image file URI. Return value bool TRUE if an image derivative was generated, or FALSE if the image derivative could not be generated. File core/modules/image/src/ImageStyleInterfac