Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

EntityDisplayModeDeleteForm.php

Namespace

Drupal\field_ui\Form

File

core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php

View source
<?php

namespace Drupal\field_ui\Form;

use Drupal\Core\Entity\EntityDeleteForm;

/**
 * Provides the delete form for entity display modes.
 *
 * @internal
 */
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.', [
            '@entity-type' => $entity_type->getSingularLabel(),
        ]);
    }

}

Classes

Title Deprecated Summary
EntityDisplayModeDeleteForm Provides the delete form for entity display modes.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal