ImageStyleDownloadController::create

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

ImageStyleDownloadController::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/modules/image/src/Controller/ImageStyleDownloadController.php, line 41 Class ImageStyleDownloadController Defines a controller to serve image styles. Namespace Drupal\image\Controller Code protected $logger;

ImageStyleDownloadController::$lock

The lock backend. Type: \Drupal\Core\Lock\LockBackendInterface File core/modules/image/src/Controller/ImageStyleDownloadController.php, line 27 Class ImageStyleDownloadController Defines a controller to serve image styles. Namespace Drupal\image\Controller Code protected $lock;

ImageStyleDownloadController::$imageFactory

The image factory. Type: \Drupal\Core\Image\ImageFactory File core/modules/image/src/Controller/ImageStyleDownloadController.php, line 34 Class ImageStyleDownloadController Defines a controller to serve image styles. Namespace Drupal\image\Controller Code protected $imageFactory;

ImageStyleDownloadController

Defines a controller to serve image styles. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\system\FileDownloadControllerclass \Drupal\image\Controller\ImageStyleDownloadController File core/modules/image/src/Controller/ImageStyleDownloadController.php, line 20 Namespace Drupal\image\Controller Members Name Modi

ImageStyleDeleteForm::submitForm

public ImageStyleDeleteForm::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 unl

ImageStyleDeleteForm::getReplacementOptions

protected ImageStyleDeleteForm::getReplacementOptions() Returns a list of image style replacement options. Return value array An option list suitable for the form select '#options'. File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 76 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code protected function getReplacementOptions() { if (!isset($this->replacementOptions)) { $this->replacementOptions = array_diff_ke

ImageStyleDeleteForm::getQuestion

public ImageStyleDeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides EntityDeleteFormTrait::getQuestion File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 23 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code public function getQuestion() { return $this->t('Optionally select a style before deleting %style', array('%s

ImageStyleDeleteForm::getDescription

public ImageStyleDeleteForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides EntityConfirmFormBase::getDescription File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 29 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code public function getDescription() { if (count($this->getReplacementOptions()) > 1) { return $this->t('If this style is

ImageStyleDeleteForm::form

public ImageStyleDeleteForm::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/ImageStyleDeleteForm.php, line 39 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code public function form(array $form, FormStateInterface $form_state) { $repl