You are here

EntityDisplayModeDeleteForm.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php

File

core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php
View source
<?php

/**
 * @file
 * Contains \Drupal\field_ui\Form\EntityDisplayModeDeleteForm.
 */
namespace Drupal\field_ui\Form;

use Drupal\Core\Entity\EntityDeleteForm;

/**
 * Provides the delete form for entity display modes.
 */
class EntityDisplayModeDeleteForm extends EntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  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(),
    ));
  }

}

Classes

Namesort descending Description
EntityDisplayModeDeleteForm Provides the delete form for entity display modes.