3 namespace Drupal\Core\Entity;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface for entity types that hold form and view mode settings.
10 interface EntityDisplayModeInterface extends ConfigEntityInterface {
13 * Gets the entity type this display mode is used for.
16 * The entity type name.
18 public function getTargetType();
21 * Set the entity type this display mode is used for.
23 * @param string $target_entity_type
24 * The target entity type for this display mode.
28 public function setTargetType($target_entity_type);