function MediaDeleteMultipleConfirmForm::getQuestion

Overrides ConfirmFormInterface::getQuestion

File

core/modules/media/src/Form/MediaDeleteMultipleConfirmForm.php, line 81

Class

MediaDeleteMultipleConfirmForm
Provides a confirmation form to delete multiple media items at once.

Namespace

Drupal\media\Form

Code

public function getQuestion() {
    return $this->formatPlural(count($this->mediaItems), 'Are you sure you want to delete this item?', 'Are you sure you want to delete these items?');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.