Commit dd663c40 authored by alexpott's avatar alexpott

Issue #2031725 by fgm, fago, vladan.me, Nebel54, Berdir: Move all entity...

Issue #2031725 by fgm, fago, vladan.me, Nebel54, Berdir: Move all entity display interfaces to the core component.
parent 94cba6d2
...@@ -639,7 +639,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re ...@@ -639,7 +639,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re
* The view mode, or 'default' to retrieve the 'default' display object for * The view mode, or 'default' to retrieve the 'default' display object for
* this bundle. * this bundle.
* *
* @return \Drupal\entity\Entity\EntityDisplay * @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface
* The display object associated to the view mode. * The display object associated to the view mode.
*/ */
function entity_get_display($entity_type, $bundle, $view_mode) { function entity_get_display($entity_type, $bundle, $view_mode) {
...@@ -682,7 +682,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) { ...@@ -682,7 +682,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) {
* @param string $view_mode * @param string $view_mode
* The view mode being rendered. * The view mode being rendered.
* *
* @return \Drupal\entity\Entity\EntityDisplay * @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface
* The display object that should be used to render the entity. * The display object that should be used to render the entity.
* *
* @see entity_get_display(). * @see entity_get_display().
...@@ -751,7 +751,7 @@ function entity_get_render_display(EntityInterface $entity, $view_mode) { ...@@ -751,7 +751,7 @@ function entity_get_render_display(EntityInterface $entity, $view_mode) {
* @param string $form_mode * @param string $form_mode
* The form mode. * The form mode.
* *
* @return \Drupal\entity\Entity\EntityFormDisplay * @return \Drupal\Core\Entity\Display\EntityFormDisplayInterface
* The EntityFormDisplay object associated to the form mode. * The EntityFormDisplay object associated to the form mode.
*/ */
function entity_get_form_display($entity_type, $bundle, $form_mode) { function entity_get_form_display($entity_type, $bundle, $form_mode) {
...@@ -790,7 +790,7 @@ function entity_get_form_display($entity_type, $bundle, $form_mode) { ...@@ -790,7 +790,7 @@ function entity_get_form_display($entity_type, $bundle, $form_mode) {
* @param string $form_mode * @param string $form_mode
* The form mode being rendered. * The form mode being rendered.
* *
* @return \Drupal\entity\Entity\EntityFormDisplay * @return \Drupal\Core\Entity\Display\EntityFormDisplayInterface
* The form display object that should be used to render the entity form. * The form display object that should be used to render the entity form.
* *
* @see entity_get_form_display(). * @see entity_get_form_display().
......
...@@ -2,17 +2,15 @@ ...@@ -2,17 +2,15 @@
/** /**
* @file * @file
* Contains \Drupal\entity\EntityDisplayBaseInterface. * Contains \Drupal\Core\Entity\Display\EntityDisplayInterface.
*/ */
namespace Drupal\entity; namespace Drupal\Core\Entity\Display;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/** /**
* Provides an interface defining an entity display entity. * Provides a common interface for entity displays.
*/ */
interface EntityDisplayBaseInterface extends ConfigEntityInterface { interface EntityDisplayInterface {
/** /**
* Creates a duplicate of the EntityDisplay object on a different view mode. * Creates a duplicate of the EntityDisplay object on a different view mode.
...@@ -23,7 +21,7 @@ interface EntityDisplayBaseInterface extends ConfigEntityInterface { ...@@ -23,7 +21,7 @@ interface EntityDisplayBaseInterface extends ConfigEntityInterface {
* @param $view_mode * @param $view_mode
* The view mode for the new object. * The view mode for the new object.
* *
* @return \Drupal\entity\Entity\EntityDisplay * @return self
* The new object. * The new object.
*/ */
public function createCopy($view_mode); public function createCopy($view_mode);
...@@ -56,7 +54,7 @@ public function getComponent($name); ...@@ -56,7 +54,7 @@ public function getComponent($name);
* @param array $options * @param array $options
* The display options. * The display options.
* *
* @return \Drupal\entity\Entity\EntityDisplay * @return self
* The EntityDisplay object. * The EntityDisplay object.
*/ */
public function setComponent($name, array $options = array()); public function setComponent($name, array $options = array());
...@@ -67,7 +65,7 @@ public function setComponent($name, array $options = array()); ...@@ -67,7 +65,7 @@ public function setComponent($name, array $options = array());
* @param string $name * @param string $name
* The name of the component. * The name of the component.
* *
* @return \Drupal\entity\Entity\EntityDisplay * @return self
* The EntityDisplay object. * The EntityDisplay object.
*/ */
public function removeComponent($name); public function removeComponent($name);
......
<?php
/**
* @file
* Contains \Drupal\Core\Entity\Display\EntityFormDisplayInterface.
*/
namespace Drupal\Core\Entity\Display;
/**
* Provides a common interface for entity form displays.
*/
interface EntityFormDisplayInterface extends EntityDisplayInterface {
}
<?php
/**
* @file
* Contains \Drupal\Core\Entity\Display\EntityViewDisplayInterface.
*/
namespace Drupal\Core\Entity\Display;
/**
* Provides a common interface for entity view displays.
*/
interface EntityViewDisplayInterface extends EntityDisplayInterface {
}
...@@ -7,12 +7,9 @@ ...@@ -7,12 +7,9 @@
namespace Drupal\Core\Entity; namespace Drupal\Core\Entity;
use Drupal\Core\Entity\Display\EntityFormDisplayInterface;
use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormBase;
use Drupal\Core\TypedData\TranslatableInterface;
use Drupal\entity\EntityFormDisplayInterface;
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Language\Language;
use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
* Base class for entity form controllers. * Base class for entity form controllers.
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
namespace Drupal\Core\Entity; namespace Drupal\Core\Entity;
use Drupal\Core\Entity\Display\EntityFormDisplayInterface;
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\BaseFormIdInterface; use Drupal\Core\Form\BaseFormIdInterface;
use Drupal\Core\StringTranslation\TranslationInterface; use Drupal\Core\StringTranslation\TranslationInterface;
use Drupal\entity\EntityFormDisplayInterface;
/** /**
* Defines a common interface for entity form controller classes. * Defines a common interface for entity form controller classes.
...@@ -64,7 +64,7 @@ public function getOperation(); ...@@ -64,7 +64,7 @@ public function getOperation();
* @param array $form_state * @param array $form_state
* An associative array containing the current state of the form. * An associative array containing the current state of the form.
* *
* @return \Drupal\entity\EntityFormDisplayInterface * @return \Drupal\Core\Entity\Display\EntityFormDisplayInterface.
* The current form display. * The current form display.
*/ */
public function getFormDisplay(array $form_state); public function getFormDisplay(array $form_state);
...@@ -75,7 +75,7 @@ public function getFormDisplay(array $form_state); ...@@ -75,7 +75,7 @@ public function getFormDisplay(array $form_state);
* Sets the form display which will be used for populating form element * Sets the form display which will be used for populating form element
* defaults. * defaults.
* *
* @param \Drupal\entity\EntityFormDisplayInterface $form_display * @param \Drupal\Core\Entity\Display\EntityFormDisplayInterface $form_display
* The form display that the current form operates with. * The form display that the current form operates with.
* @param array $form_state * @param array $form_state
* An associative array containing the current state of the form. * An associative array containing the current state of the form.
......
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
namespace Drupal\Core\Entity; namespace Drupal\Core\Entity;
use Drupal\Core\Entity\EntityManager; use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Language\Language; use Drupal\Core\Language\Language;
use Drupal\entity\Entity\EntityDisplay;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
...@@ -163,7 +162,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco ...@@ -163,7 +162,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco
* The render array that is being created. * The render array that is being created.
* @param \Drupal\Core\Entity\EntityInterface $entity * @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to be prepared. * The entity to be prepared.
* @param \Drupal\entity\Entity\EntityDisplay $display * @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
* The entity_display object holding the display options configured for * The entity_display object holding the display options configured for
* the entity components. * the entity components.
* @param string $view_mode * @param string $view_mode
...@@ -172,7 +171,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco ...@@ -172,7 +171,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco
* (optional) For which language the entity should be prepared, defaults to * (optional) For which language the entity should be prepared, defaults to
* the current content language. * the current content language.
*/ */
protected function alterBuild(array &$build, EntityInterface $entity, EntityDisplay $display, $view_mode, $langcode = NULL) { } protected function alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode, $langcode = NULL) { }
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
namespace Drupal\custom_block; namespace Drupal\custom_block;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityViewBuilder; use Drupal\Core\Entity\EntityViewBuilder;
use Drupal\entity\Entity\EntityDisplay;
/** /**
* Render controller for custom blocks. * Render controller for custom blocks.
...@@ -19,7 +19,7 @@ class CustomBlockViewBuilder extends EntityViewBuilder { ...@@ -19,7 +19,7 @@ class CustomBlockViewBuilder extends EntityViewBuilder {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function alterBuild(array &$build, EntityInterface $entity, EntityDisplay $display, $view_mode, $langcode = NULL) { protected function alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode, $langcode = NULL) {
parent::alterBuild($build, $entity, $display, $view_mode, $langcode); parent::alterBuild($build, $entity, $display, $view_mode, $langcode);
// Add contextual links for this custom block. // Add contextual links for this custom block.
if (!$entity->isNew() && $view_mode == 'full') { if (!$entity->isNew() && $view_mode == 'full') {
......
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
use Drupal\node\NodeInterface; use Drupal\node\NodeInterface;
use Drupal\node\NodeTypeInterface; use Drupal\node\NodeTypeInterface;
use Drupal\Core\Language\Language; use Drupal\Core\Language\Language;
use Drupal\entity\Entity\EntityDisplay; use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Template\Attribute; use Drupal\Core\Template\Attribute;
use Drupal\menu_link\Entity\MenuLink;
use Drupal\menu_link\MenuLinkStorageController;
/** /**
* Implements hook_help(). * Implements hook_help().
...@@ -448,7 +446,7 @@ function book_node_load($nodes) { ...@@ -448,7 +446,7 @@ function book_node_load($nodes) {
/** /**
* Implements hook_node_view(). * Implements hook_node_view().
*/ */
function book_node_view(EntityInterface $node, EntityDisplay $display, $view_mode) { function book_node_view(EntityInterface $node, EntityViewDisplayInterface $display, $view_mode) {
if ($view_mode == 'full') { if ($view_mode == 'full') {
if (!empty($node->book['bid']) && empty($node->in_preview)) { if (!empty($node->book['bid']) && empty($node->in_preview)) {
$book_navigation = array( '#theme' => 'book_navigation', '#book_link' => $node->book); $book_navigation = array( '#theme' => 'book_navigation', '#book_link' => $node->book);
......
...@@ -86,7 +86,7 @@ function hook_comment_load(Drupal\comment\Comment $comments) { ...@@ -86,7 +86,7 @@ function hook_comment_load(Drupal\comment\Comment $comments) {
* *
* @param \Drupal\comment\Entity\Comment $comment $comment * @param \Drupal\comment\Entity\Comment $comment $comment
* Passes in the comment the action is being performed on. * Passes in the comment the action is being performed on.
* @param \Drupal\entity\Entity\EntityDisplay $display * @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
* The entity_display object holding the display options configured for the * The entity_display object holding the display options configured for the
* comment components. * comment components.
* @param $view_mode * @param $view_mode
...@@ -96,7 +96,7 @@ function hook_comment_load(Drupal\comment\Comment $comments) { ...@@ -96,7 +96,7 @@ function hook_comment_load(Drupal\comment\Comment $comments) {
* *
* @see hook_entity_view() * @see hook_entity_view()
*/ */
function hook_comment_view(\Drupal\comment\Entity\Comment $comment, \Drupal\entity\Entity\EntityDisplay $display, $view_mode, $langcode) { function hook_comment_view(\Drupal\comment\Entity\Comment $comment, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode, $langcode) {
// Only do the extra work if the component is configured to be displayed. // Only do the extra work if the component is configured to be displayed.
// This assumes a 'mymodule_addition' extra field has been defined for the // This assumes a 'mymodule_addition' extra field has been defined for the
// node type in hook_field_extra_fields(). // node type in hook_field_extra_fields().
...@@ -124,14 +124,14 @@ function hook_comment_view(\Drupal\comment\Entity\Comment $comment, \Drupal\enti ...@@ -124,14 +124,14 @@ function hook_comment_view(\Drupal\comment\Entity\Comment $comment, \Drupal\enti
* A renderable array representing the comment. * A renderable array representing the comment.
* @param \Drupal\comment\Entity\Comment $comment * @param \Drupal\comment\Entity\Comment $comment
* The comment being rendered. * The comment being rendered.
* @param \Drupal\entity\Entity\EntityDisplay $display * @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
* The entity_display object holding the display options configured for the * The entity_display object holding the display options configured for the
* comment components. * comment components.
* *
* @see comment_view() * @see comment_view()
* @see hook_entity_view_alter() * @see hook_entity_view_alter()
*/ */
function hook_comment_view_alter(&$build, \Drupal\comment\Entity\Comment $comment, \Drupal\entity\Entity\EntityDisplay $display) { function hook_comment_view_alter(&$build, \Drupal\comment\Entity\Comment $comment, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display) {
// Check for the existence of a field added by another module. // Check for the existence of a field added by another module.
if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
// Change its weight. // Change its weight.
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
use Drupal\Core\Entity\EntityChangedInterface; use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\comment\CommentInterface; use Drupal\comment\CommentInterface;
use Drupal\comment\Entity\Comment; use Drupal\comment\Entity\Comment;
use Drupal\entity\Entity\EntityDisplay; use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\field\FieldInstanceInterface; use Drupal\field\FieldInstanceInterface;
use Drupal\field\FieldInterface; use Drupal\field\FieldInterface;
use Drupal\file\FileInterface; use Drupal\file\FileInterface;
...@@ -456,7 +456,7 @@ function theme_comment_block($variables) { ...@@ -456,7 +456,7 @@ function theme_comment_block($variables) {
/** /**
* Implements hook_entity_view(). * Implements hook_entity_view().
*/ */
function comment_entity_view(EntityInterface $entity, EntityDisplay $display, $view_mode, $langcode) { function comment_entity_view(EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode, $langcode) {
if ($entity->entityType() != 'node') { if ($entity->entityType() != 'node') {
// Comment links are only added to node entity type for backwards // Comment links are only added to node entity type for backwards
// compatibility. Should you require comment links for other entity types // compatibility. Should you require comment links for other entity types
...@@ -594,7 +594,7 @@ function comment_entity_view(EntityInterface $entity, EntityDisplay $display, $v ...@@ -594,7 +594,7 @@ function comment_entity_view(EntityInterface $entity, EntityDisplay $display, $v
/** /**
* Implements hook_node_view_alter(). * Implements hook_node_view_alter().
*/ */
function comment_node_view_alter(&$build, EntityInterface $node, EntityDisplay $display) { function comment_node_view_alter(&$build, EntityInterface $node, EntityViewDisplayInterface $display) {
if (\Drupal::moduleHandler()->moduleExists('history')) { if (\Drupal::moduleHandler()->moduleExists('history')) {
$build['#attributes']['data-history-node-id'] = $node->id(); $build['#attributes']['data-history-node-id'] = $node->id();
} }
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
use Drupal\Core\Access\CsrfTokenGenerator; use Drupal\Core\Access\CsrfTokenGenerator;
use Drupal\Core\Entity\EntityControllerInterface; use Drupal\Core\Entity\EntityControllerInterface;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityViewBuilderInterface; use Drupal\Core\Entity\EntityViewBuilderInterface;
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Entity\EntityViewBuilder; use Drupal\Core\Entity\EntityViewBuilder;
use Drupal\entity\Entity\EntityDisplay;
use Drupal\field\FieldInfo; use Drupal\field\FieldInfo;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
...@@ -271,7 +271,7 @@ protected static function buildLinks(CommentInterface $entity, EntityInterface $ ...@@ -271,7 +271,7 @@ protected static function buildLinks(CommentInterface $entity, EntityInterface $
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function alterBuild(array &$build, EntityInterface $comment, EntityDisplay $display, $view_mode, $langcode = NULL) { protected function alterBuild(array &$build, EntityInterface $comment, EntityViewDisplayInterface $display, $view_mode, $langcode = NULL) {
parent::alterBuild($build, $comment, $display, $view_mode, $langcode); parent::alterBuild($build, $comment, $display, $view_mode, $langcode);
if (empty($comment->in_preview)) { if (empty($comment->in_preview)) {
$prefix = ''; $prefix = '';
......
...@@ -12,10 +12,7 @@ ...@@ -12,10 +12,7 @@
*/ */
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\edit\Form\EditFieldForm; use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Component\Utility\NestedArray;
use Drupal\entity\Entity\EntityDisplay;
use Drupal\user\TempStoreFactory;
/** /**
* Implements hook_menu(). * Implements hook_menu().
...@@ -197,7 +194,7 @@ function edit_preprocess_field(&$variables) { ...@@ -197,7 +194,7 @@ function edit_preprocess_field(&$variables) {
/** /**
* Implements hook_entity_view_alter(). * Implements hook_entity_view_alter().
*/ */
function edit_entity_view_alter(&$build, EntityInterface $entity, EntityDisplay $display) { function edit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
$build['#attributes']['data-edit-entity-id'] = $entity->entityType() . '/' . $entity->id(); $build['#attributes']['data-edit-entity-id'] = $entity->entityType() . '/' . $entity->id();
} }
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
use Drupal\Core\Language\Language; use Drupal\Core\Language\Language;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\entity\Entity\EntityDisplay; use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
/** /**
* Implements hook_entity_view_alter(). * Implements hook_entity_view_alter().
*/ */
function edit_test_entity_view_alter(&$build, EntityInterface $entity, EntityDisplay $display) { function edit_test_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
if ($entity->entityType() == 'node' && $entity->bundle() == 'article') { if ($entity->entityType() == 'node' && $entity->bundle() == 'article') {
$build['pseudo'] = array( $build['pseudo'] = array(
'#theme' => 'field', '#theme' => 'field',
......
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
namespace Drupal\entity\Entity; namespace Drupal\entity\Entity;
use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Annotation\Translation;
use Drupal\entity\EntityDisplayBase; use Drupal\entity\EntityDisplayBase;
use Drupal\entity\EntityDisplayInterface;
/** /**
* Configuration entity that contains display options for all components of a * Configuration entity that contains display options for all components of a
...@@ -30,7 +28,7 @@ ...@@ -30,7 +28,7 @@
* } * }
* ) * )
*/ */
class EntityDisplay extends EntityDisplayBase implements EntityDisplayInterface { class EntityDisplay extends EntityDisplayBase implements EntityViewDisplayInterface {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -7,10 +7,8 @@ ...@@ -7,10 +7,8 @@
namespace Drupal\entity\Entity; namespace Drupal\entity\Entity;
use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Entity\Display\EntityFormDisplayInterface;
use Drupal\Core\Annotation\Translation;
use Drupal\entity\EntityDisplayBase; use Drupal\entity\EntityDisplayBase;
use Drupal\entity\EntityFormDisplayInterface;
/** /**
* Configuration entity that contains widget options for all components of a * Configuration entity that contains widget options for all components of a
......
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
namespace Drupal\entity; namespace Drupal\entity;
use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Entity\Display\EntityDisplayInterface;
use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\ContentEntityInterface;
/** /**
* Base class for config entity types that store configuration for entity forms * Base class for config entity types that store configuration for entity forms
* and displays. * and displays.
*/ */
abstract class EntityDisplayBase extends ConfigEntityBase implements EntityDisplayBaseInterface { abstract class EntityDisplayBase extends ConfigEntityBase implements EntityDisplayInterface {
/** /**
* Unique ID for the config entity. * Unique ID for the config entity.
......
<?php
/**
* @file
* Contains \Drupal\entity\EntityDisplayInterface.
*/
namespace Drupal\entity;
use Drupal\entity\EntityDisplayBaseInterface;
/**
* Provides an interface defining an entity display entity.
*/
interface EntityDisplayInterface extends EntityDisplayBaseInterface {
}
<?php
/**
* @file
* Contains \Drupal\entity\EntityFormDisplayInterface.
*/
namespace Drupal\entity;