You are here

public function AssetInjectorDeleteForm::getQuestion in Asset Injector 8

Same name and namespace in other branches
  1. 8.2 src/Form/AssetInjectorDeleteForm.php \Drupal\asset_injector\Form\AssetInjectorDeleteForm::getQuestion()

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

src/Form/AssetInjectorDeleteForm.php, line 18

Class

AssetInjectorDeleteForm
Builds the form to delete Css Injector entities.

Namespace

Drupal\asset_injector\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete @type: %name?', [
    '@type' => $this->entity
      ->getEntityType()
      ->getLabel(),
    '%name' => $this->entity
      ->label(),
  ]);
}