ImageStyle::id

public ImageStyle::id() Gets the identifier. Return value string|int|null The entity identifier, or NULL if the object does not yet have an identifier. Overrides Entity::id File core/modules/image/src/Entity/ImageStyle.php, line 88 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code public function id() { return $this->name; }

ImageStyle::getStreamWrapperManager

protected ImageStyle::getStreamWrapperManager() Gets the stream wrapper manager service. @todo Properly inject this service in Drupal 9.0.x. Return value \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface The stream wrapper manager service File core/modules/image/src/Entity/ImageStyle.php, line 519 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code protected function getStreamWrapperManager() { return \Drupal::service('stream_wrapp

ImageStyle::getReplacementID

public ImageStyle::getReplacementID() Returns the replacement ID. Return value string|null The replacement image style ID or NULL if no replacement has been selected. Overrides ImageStyleInterface::getReplacementID 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/Entity/ImageStyle.php, line 380 Class

ImageStyle::getPrivateKey

protected ImageStyle::getPrivateKey() Gets the Drupal private key. Return value string The Drupal private key. File core/modules/image/src/Entity/ImageStyle.php, line 417 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code protected function getPrivateKey() { return \Drupal::service('private_key')->get(); }

ImageStyle::getPathToken

public ImageStyle::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. Overrides ImageStyleInterface::getPathToken File core/modules/image/src/Entity/I

ImageStyle::getName

public ImageStyle::getName() Returns the image style. Return value string The name of the image style. Overrides ImageStyleInterface::getName File core/modules/image/src/Entity/ImageStyle.php, line 389 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code public function getName() { return $this->get('name'); }

ImageStyle::getHashSalt

protected ImageStyle::getHashSalt() Gets a salt useful for hardening against SQL injection. Return value string A salt based on information in settings.php, not in the database. Throws \RuntimeException File core/modules/image/src/Entity/ImageStyle.php, line 429 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code protected function getHashSalt() { return Settings::getHashSalt(); }

ImageStyle::getEffects

public ImageStyle::getEffects() Returns the image effects for this style. Return value \Drupal\image\ImageEffectPluginCollection|\Drupal\image\ImageEffectInterface[] The image effect plugin collection. Overrides ImageStyleInterface::getEffects File core/modules/image/src/Entity/ImageStyle.php, line 353 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code public function getEffects() { if (!$this->effectsCollection) { $this->effec

ImageStyle::getEffect

public ImageStyle::getEffect($effect) Returns a specific image effect. Parameters string $effect: The image effect ID. Return value \Drupal\image\ImageEffectInterface The image effect object. Overrides ImageStyleInterface::getEffect File core/modules/image/src/Entity/ImageStyle.php, line 346 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code public function getEffect($effect) { return $this->getEffects()->get($effect); }

ImageStyle::getDerivativeExtension

public ImageStyle::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. Overrides ImageStyleInterface::getDerivativeExtension File core/modules/image/src/Entity/ImageStyle.php, line 319 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\i