diff core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php	Wed Nov 29 16:09:58 2017 +0000
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\Core\Entity;
+
+use Drupal\Core\Config\Entity\ConfigEntityInterface;
+
+/**
+ * Provides an interface for entity types that hold form and view mode settings.
+ */
+interface EntityDisplayModeInterface extends ConfigEntityInterface {
+
+  /**
+   * Gets the entity type this display mode is used for.
+   *
+   * @return string
+   *   The entity type name.
+   */
+  public function getTargetType();
+
+  /**
+   * Set the entity type this display mode is used for.
+   *
+   * @param string $target_entity_type
+   *   The target entity type for this display mode.
+   *
+   * @return $this
+   */
+  public function setTargetType($target_entity_type);
+
+}