public function AssetInjectorEnableForm::getQuestion in Asset Injector 8
Same name and namespace in other branches
- 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\FormCode
public function getQuestion() {
return $this
->t('Enable @type: %label?', [
'@type' => $this->entity
->getEntityType()
->getLabel(),
'%label' => $this->entity
->label(),
]);
}