You are here

public function ImageStyleDeleteForm::getDescription in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/Form/ImageStyleDeleteForm.php \Drupal\image\Form\ImageStyleDeleteForm::getDescription()
  2. 9 core/modules/image/src/Form/ImageStyleDeleteForm.php \Drupal\image\Form\ImageStyleDeleteForm::getDescription()

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides EntityConfirmFormBase::getDescription

File

core/modules/image/src/Form/ImageStyleDeleteForm.php, line 32

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 in use on the site, you may select another style to replace it. All images that have been generated for this style will be permanently deleted. If no replacement style is selected, the dependent configurations might need manual reconfiguration.');
  }
  return $this
    ->t('All images that have been generated for this style will be permanently deleted. The dependent configurations might need manual reconfiguration.');
}