Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityDisplayModeInterface.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
6
7 /**
8  * Provides an interface for entity types that hold form and view mode settings.
9  */
10 interface EntityDisplayModeInterface extends ConfigEntityInterface {
11
12   /**
13    * Gets the entity type this display mode is used for.
14    *
15    * @return string
16    *   The entity type name.
17    */
18   public function getTargetType();
19
20   /**
21    * Set the entity type this display mode is used for.
22    *
23    * @param string $target_entity_type
24    *   The target entity type for this display mode.
25    *
26    * @return $this
27    */
28   public function setTargetType($target_entity_type);
29
30 }