EntityDisplayModeInterface.php 656 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Drupal\Core\Entity;
  3. use Drupal\Core\Config\Entity\ConfigEntityInterface;
  4. /**
  5. * Provides an interface for entity types that hold form and view mode settings.
  6. */
  7. interface EntityDisplayModeInterface extends ConfigEntityInterface {
  8. /**
  9. * Gets the entity type this display mode is used for.
  10. *
  11. * @return string
  12. * The entity type name.
  13. */
  14. public function getTargetType();
  15. /**
  16. * Set the entity type this display mode is used for.
  17. *
  18. * @param string $target_entity_type
  19. * The target entity type for this display mode.
  20. *
  21. * @return $this
  22. */
  23. public function setTargetType($target_entity_type);
  24. }