Version 1
[yaffs-website] / web / core / modules / field_ui / src / Form / EntityDisplayModeDeleteForm.php
diff --git a/web/core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php b/web/core/modules/field_ui/src/Form/EntityDisplayModeDeleteForm.php
new file mode 100644 (file)
index 0000000..f7d8804
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+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.', ['@entity-type' => $entity_type->getLowercaseLabel()]);
+  }
+
+}