ImageStyleFormBase

Base form for image style add and edit 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\ImageStyleFormBase File core/modules/image/src/Form/ImageStyleFormBase.php, line 13 Namespace Drupal\image\Form

ImageStyleFlushForm::submitForm

public ImageStyleFlushForm::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 unle

ImageStyleFlushForm::getQuestion

public ImageStyleFlushForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/image/src/Form/ImageStyleFlushForm.php, line 16 Class ImageStyleFlushForm Form controller for image style flush. Namespace Drupal\image\Form Code public function getQuestion() { return $this->t('Are you sure you want to apply the updated %name image effect to a

ImageStyleFlushForm::getDescription

public ImageStyleFlushForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides EntityConfirmFormBase::getDescription File core/modules/image/src/Form/ImageStyleFlushForm.php, line 23 Class ImageStyleFlushForm Form controller for image style flush. Namespace Drupal\image\Form Code public function getDescription() { return $this->t('This operation does not change the original images but the copies created for th

ImageStyleFlushForm::getConfirmText

public ImageStyleFlushForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides EntityConfirmFormBase::getConfirmText File core/modules/image/src/Form/ImageStyleFlushForm.php, line 30 Class ImageStyleFlushForm Form controller for image style flush. Namespace Drupal\image\Form Code public function getConfirmText() { return $this->t('Flush'); }

ImageStyleFlushForm::getCancelUrl

public ImageStyleFlushForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/image/src/Form/ImageStyleFlushForm.php, line 37 Class ImageStyleFlushForm Form controller for image style flush. Namespace Drupal\image\Form Code public function getCancelUrl() { return $this->entity->urlInfo('collection'); }

ImageStyleFlushForm

Form controller for image style flush. 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\image\Form\ImageStyleFlushForm File core/modules/image/

ImageStyleEditForm::__construct

public ImageStyleEditForm::__construct(EntityStorageInterface $image_style_storage, ImageEffectManager $image_effect_manager) Constructs an ImageStyleEditForm object. Parameters \Drupal\Core\Entity\EntityStorageInterface $image_style_storage: The storage. \Drupal\image\ImageEffectManager $image_effect_manager: The image effect manager service. Overrides ImageStyleFormBase::__construct File core/modules/image/src/Form/ImageStyleEditForm.php, line 32 Class ImageStyleEditForm Controller for

ImageStyleEditForm::updateEffectWeights

protected ImageStyleEditForm::updateEffectWeights(array $effects) Updates image effect weights. Parameters array $effects: Associative array with effects having effect uuid as keys and array with effect data as values. File core/modules/image/src/Form/ImageStyleEditForm.php, line 274 Class ImageStyleEditForm Controller for image style edit form. Namespace Drupal\image\Form Code protected function updateEffectWeights(array $effects) { foreach ($effects as $uuid => $effect_data) {

ImageStyleEditForm::submitForm

public ImageStyleEditForm::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 unles