You are here

public function AssetAddLogActionForm::getQuestion in farmOS 2.x

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

modules/core/log/src/Form/AssetAddLogActionForm.php, line 91

Class

AssetAddLogActionForm
Provides an asset add log confirmation form.

Namespace

Drupal\farm_log\Form

Code

public function getQuestion() {
  return $this
    ->formatPlural(count($this->entities), 'Are you sure you want to add a log referencing this @item?', 'Are you sure you want to add a log referencing these @items?', [
    '@item' => $this->entityType
      ->getSingularLabel(),
    '@items' => $this->entityType
      ->getPluralLabel(),
  ]);
}