ImageStyleInterface::buildUrl

public ImageStyleInterface::buildUrl($path, $clean_urls = NULL) Returns the URL of this image derivative for an original image path or URI. Parameters string $path: The path or URI to the original image. mixed $clean_urls: (optional) Whether clean URLs are in use. Return value string The absolute URL where a style image can be downloaded, suitable for use in an <img> tag. Requesting the URL will cause the image to be created. See also \Drupal\image\Controller\ImageStyleDownloadControll

ImageStyleInterface::buildUri

public ImageStyleInterface::buildUri($uri) Returns the URI of this image when using this style. The path returned by this function may not exist. The default generation method only creates images when they are requested by a user's browser. Modules may implement this method to decide where to place derivatives. Parameters string $uri: The URI or path to the original image. Return value string The URI to the image derivative for this style. File core/modules/image/src/ImageStyleInterface.php,

ImageStyleInterface::addImageEffect

public ImageStyleInterface::addImageEffect(array $configuration) Saves an image effect for this style. Parameters array $configuration: An array of image effect configuration. Return value string The image effect ID. File core/modules/image/src/ImageStyleInterface.php, line 185 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function addImageEffect(array $configuration);

ImageStyleInterface

Provides an interface defining an image style entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\image\ImageStyleInterface File core/modules/image/src/ImageStyleInterface.php, line 10 Namespace Drupal\image Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access.

ImageStyleFormBase::__construct

public ImageStyleFormBase::__construct(EntityStorageInterface $image_style_storage) Constructs a base class for image style add and edit forms. Parameters \Drupal\Core\Entity\EntityStorageInterface $image_style_storage: The image style entity storage. File core/modules/image/src/Form/ImageStyleFormBase.php, line 35 Class ImageStyleFormBase Base form for image style add and edit forms. Namespace Drupal\image\Form Code public function __construct(EntityStorageInterface $image_style_stor

ImageStyleFormBase::save

public ImageStyleFormBase::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the op

ImageStyleFormBase::form

public ImageStyleFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/image/src/Form/ImageStyleFormBase.php, line 51 Class ImageStyleFormBase Base form for image style add and edit forms. Namespace Drupal\image\Form Code public function form(array $form, FormStateInterface $form_state) { $form

ImageStyleFormBase::create

public static ImageStyleFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servi

ImageStyleFormBase::$imageStyleStorage

The image style entity storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/image/src/Form/ImageStyleFormBase.php, line 27 Class ImageStyleFormBase Base form for image style add and edit forms. Namespace Drupal\image\Form Code protected $imageStyleStorage;

ImageStyleFormBase::$entity

The entity being used by this form. Type: \Drupal\image\ImageStyleInterface Overrides EntityForm::$entity File core/modules/image/src/Form/ImageStyleFormBase.php, line 20 Class ImageStyleFormBase Base form for image style add and edit forms. Namespace Drupal\image\Form Code protected $entity;