You are here

public function AssetInjectorDisableForm::getQuestion in Asset Injector 8

Same name and namespace in other branches
  1. 8.2 src/Form/AssetInjectorDisableForm.php \Drupal\asset_injector\Form\AssetInjectorDisableForm::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/AssetInjectorDisableForm.php, line 20

Class

AssetInjectorDisableForm
Class AssetInjectorDisableForm.

Namespace

Drupal\asset_injector\Form

Code

public function getQuestion() {
  return $this
    ->t('Disable @type: %label?', [
    '@type' => $this->entity
      ->getEntityType()
      ->getLabel(),
    '%label' => $this->entity
      ->label(),
  ]);
}