public function FeedDeleteForm::getDescription in Feeds 8.3
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides ContentEntityConfirmFormBase::getDescription
File
- src/
Form/ FeedDeleteForm.php, line 24
Class
- FeedDeleteForm
- Provides a form for deleting a Feed.
Namespace
Drupal\feeds\FormCode
public function getDescription() {
$item_count = $this->entity
->getItemCount();
if (!$item_count) {
$message = $this
->t('This feed has no imported items.');
}
else {
$message = $this
->formatPlural($item_count, 'This feed has 1 imported item that will remain on the site.', 'This feed has @count imported items that will remain on the site.');
}
return $message . ' ' . parent::getDescription();
}