ImageStyleDeleteForm::$replacementOptions

Replacement options. Type: array File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 18 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code protected $replacementOptions;

ImageStyleDeleteForm

Creates a form to delete an image style. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFormTraitclas

ImageStyleAddForm::submitForm

public ImageStyleAddForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless

ImageStyleAddForm::actions

public ImageStyleAddForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/image/src/Form/ImageStyleAddForm.php, line 23 Class ImageStyleAddForm Controller for image style addition forms. Namespace Drupal\image\Form Code public function actions(array $form, FormStateInterface $fo

ImageStyleAddForm

Controller for image style addition forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\image\Form\ImageStyleFormBaseclass \Drupal\image\Form\ImageStyleAddForm File core/modules/image/src/Form/ImageStyleAddForm.php, li

ImageStyle::transformDimensions

public ImageStyle::transformDimensions(array &$dimensions, $uri) Determines the dimensions of this image style. Stores the dimensions of this image style into $dimensions associative array. Implementations have to provide at least values to next keys: width: Integer with the derivative image width. height: Integer with the derivative image height. Parameters array $dimensions: Associative array passed by reference. Implementations have to store the resulting width and height, in pixels

ImageStyle::setName

public ImageStyle::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. Overrides ImageStyleInterface::setName File core/modules/image/src/Entity/ImageStyle.php, line 396 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code public function setName($name) { $this->set('name', $name); return $thi

ImageStyle::replaceImageStyle

protected static ImageStyle::replaceImageStyle(ImageStyleInterface $style) Update field settings if the image style name is changed. Parameters \Drupal\image\ImageStyleInterface $style: The image style. File core/modules/image/src/Entity/ImageStyle.php, line 136 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code protected static function replaceImageStyle(ImageStyleInterface $style) { if ($style->id() != $style->getOriginalId()) {

ImageStyle::postSave

public ImageStyle::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool

ImageStyle::postDelete

public static ImageStyle::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/modules/image/src/Entity/ImageStyle.php, line 117 Class ImageStyle Defin