ImageStyleEditForm::save

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

ImageStyleEditForm::form

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

ImageStyleEditForm::effectValidate

public ImageStyleEditForm::effectValidate($form, FormStateInterface $form_state) Validate handler for image effect. File core/modules/image/src/Form/ImageStyleEditForm.php, line 195 Class ImageStyleEditForm Controller for image style edit form. Namespace Drupal\image\Form Code public function effectValidate($form, FormStateInterface $form_state) { if (!$form_state->getValue('new')) { $form_state->setErrorByName('new', $this->t('Select an effect to add.')); } }

ImageStyleEditForm::effectSave

public ImageStyleEditForm::effectSave($form, FormStateInterface $form_state) Submit handler for image effect. File core/modules/image/src/Form/ImageStyleEditForm.php, line 204 Class ImageStyleEditForm Controller for image style edit form. Namespace Drupal\image\Form Code public function effectSave($form, FormStateInterface $form_state) { $this->save($form, $form_state); // Check if this field has any configuration options. $effect = $this->imageEffectManager->getDefinit

ImageStyleEditForm::create

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

ImageStyleEditForm::actions

public ImageStyleEditForm::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/ImageStyleEditForm.php, line 260 Class ImageStyleEditForm Controller for image style edit form. Namespace Drupal\image\Form Code public function actions(array $form, FormStateInterface $for

ImageStyleEditForm::$imageEffectManager

The image effect manager service. Type: \Drupal\image\ImageEffectManager File core/modules/image/src/Form/ImageStyleEditForm.php, line 22 Class ImageStyleEditForm Controller for image style edit form. Namespace Drupal\image\Form Code protected $imageEffectManager;

ImageStyleEditForm

Controller for image style edit form. 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\ImageStyleEditForm File core/modules/image/src/Form/ImageStyleEditForm.php, line

ImageStyleDownloadController::__construct

public ImageStyleDownloadController::__construct(LockBackendInterface $lock, ImageFactory $image_factory) Constructs a ImageStyleDownloadController object. Parameters \Drupal\Core\Lock\LockBackendInterface $lock: The lock backend. \Drupal\Core\Image\ImageFactory $image_factory: The image factory. File core/modules/image/src/Controller/ImageStyleDownloadController.php, line 51 Class ImageStyleDownloadController Defines a controller to serve image styles. Namespace Drupal\image\Controlle

ImageStyleDownloadController::deliver

public ImageStyleDownloadController::deliver(Request $request, $scheme, ImageStyleInterface $image_style) Generates a derivative, given a style and image path. After generating an image, transfer it to the requesting agent. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. string $scheme: The file scheme, defaults to 'private'. \Drupal\image\ImageStyleInterface $image_style: The image style to deliver. Return value \Symfony\Component\HttpFoundation\BinaryFileR