You are here

public function EntityDisplayModeDeleteForm::getDescription in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php \Drupal\field_ui\Form\EntityDisplayModeDeleteForm::getDescription()

Returns additional text to display as a description.

Return value

string The form description.

Overrides EntityConfirmFormBase::getDescription

File

core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php, line 20
Contains \Drupal\field_ui\Form\EntityDisplayModeDeleteForm.

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.', array(
    '@entity-type' => $entity_type
      ->getLowercaseLabel(),
  ));
}