ImageFactory::$toolkitId

The image toolkit ID to use for this factory. Type: string File core/lib/Drupal/Core/Image/ImageFactory.php, line 24 Class ImageFactory Provides a factory for image objects. Namespace Drupal\Core\Image Code protected $toolkitId;

ImageFactory

Provides a factory for image objects. Hierarchy class \Drupal\Core\Image\ImageFactory File core/lib/Drupal/Core/Image/ImageFactory.php, line 10 Namespace Drupal\Core\Image Members Name Modifiers Type Description ImageFactory::$toolkitId protected property The image toolkit ID to use for this factory. ImageFactory::$toolkitManager protected property The image toolkit plugin manager. ImageFactory::get public function Constructs a new Image object. ImageFa

ImageEffectManager::__construct

public ImageEffectManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Constructs a new ImageEffectManager. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extension\ModuleHandlerInterface $modu

ImageEffectManager

Manages image effect plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\image\ImageEffectManager See also hook_image_effect_info_alter() \Drupal\image\Annotation\ImageEffect \Drupal\image\ConfigurableImageEffectInterface \Dru

ImageEffectInterface::transformDimensions

public ImageEffectInterface::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

ImageEffectInterface::setWeight

public ImageEffectInterface::setWeight($weight) Sets the weight for this image effect. Parameters int $weight: The weight for this image effect. Return value $this File core/modules/image/src/ImageEffectInterface.php, line 104 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function setWeight($weight);

ImageEffectInterface::label

public ImageEffectInterface::label() Returns the image effect label. Return value string The image effect label. File core/modules/image/src/ImageEffectInterface.php, line 78 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function label();

ImageEffectInterface::getWeight

public ImageEffectInterface::getWeight() Returns the weight of the image effect. Return value int|string Either the integer weight of the image effect, or an empty string. File core/modules/image/src/ImageEffectInterface.php, line 94 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function getWeight();

ImageEffectInterface::getUuid

public ImageEffectInterface::getUuid() Returns the unique ID representing the image effect. Return value string The image effect ID. File core/modules/image/src/ImageEffectInterface.php, line 86 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function getUuid();

ImageEffectInterface::getSummary

public ImageEffectInterface::getSummary() Returns a render array summarizing the configuration of the image effect. Return value array A render array. File core/modules/image/src/ImageEffectInterface.php, line 70 Class ImageEffectInterface Defines the interface for image effects. Namespace Drupal\image Code public function getSummary();