You are here

public function AssetInjectorEnableForm::getQuestion in Asset Injector 8

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

Class

AssetInjectorEnableForm
Class AssetInjectorEnableForm.

Namespace

Drupal\asset_injector\Form

Code

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