function EntityDisplayModeDeleteForm::getDescription

Same name in other branches
  1. 9 core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php \Drupal\field_ui\Form\EntityDisplayModeDeleteForm::getDescription()
  2. 8.9.x core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php \Drupal\field_ui\Form\EntityDisplayModeDeleteForm::getDescription()
  3. 11.x core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php \Drupal\field_ui\Form\EntityDisplayModeDeleteForm::getDescription()

Overrides EntityConfirmFormBase::getDescription

File

core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php, line 17

Class

EntityDisplayModeDeleteForm
Provides the delete form for entity display modes.

Namespace

Drupal\field_ui\Form

Code

public function getDescription() {
    $entity_type = $this->entity
        ->getEntityType();
    return $this->t('Deleting a @entity-type will cause any output still requesting to use that @entity-type to use the default display settings.', [
        '@entity-type' => $entity_type->getSingularLabel(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.