You are here

public function AssetInjectorDisableForm::getDescription in Asset Injector 8

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

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides EntityConfirmFormBase::getDescription

File

src/Form/AssetInjectorDisableForm.php, line 30

Class

AssetInjectorDisableForm
Class AssetInjectorDisableForm.

Namespace

Drupal\asset_injector\Form

Code

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