interface EntityDisplayRepositoryInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php \Drupal\Core\Entity\EntityDisplayRepositoryInterface
Provides an interface for an entity display repository.
Hierarchy
- interface \Drupal\Core\Entity\EntityDisplayRepositoryInterface
Expanded class hierarchy of EntityDisplayRepositoryInterface
All classes that implement EntityDisplayRepositoryInterface
1 file declares its use of EntityDisplayRepositoryInterface
- EntityFieldManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php - Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDisplayRepositoryInterface.php, line 13 - Contains \Drupal\Core\Entity\EntityDisplayRepositoryInterface.
Namespace
Drupal\Core\EntityView source
interface EntityDisplayRepositoryInterface {
/**
* Gets the entity view mode info for all entity types.
*
* @return array
* The view mode info for all entity types.
*/
public function getAllViewModes();
/**
* Gets the entity view mode info for a specific entity type.
*
* @param string $entity_type_id
* The entity type whose view mode info should be returned.
*
* @return array
* The view mode info for a specific entity type.
*/
public function getViewModes($entity_type_id);
/**
* Gets the entity form mode info for all entity types.
*
* @return array
* The form mode info for all entity types.
*/
public function getAllFormModes();
/**
* Gets the entity form mode info for a specific entity type.
*
* @param string $entity_type_id
* The entity type whose form mode info should be returned.
*
* @return array
* The form mode info for a specific entity type.
*/
public function getFormModes($entity_type_id);
/**
* Gets an array of view mode options.
*
* @param string $entity_type_id
* The entity type whose view mode options should be returned.
*
* @return array
* An array of view mode labels, keyed by the display mode ID.
*/
public function getViewModeOptions($entity_type_id);
/**
* Gets an array of form mode options.
*
* @param string $entity_type_id
* The entity type whose form mode options should be returned.
*
* @return array
* An array of form mode labels, keyed by the display mode ID.
*/
public function getFormModeOptions($entity_type_id);
/**
* Returns an array of enabled view mode options by bundle.
*
* @param string $entity_type_id
* The entity type whose view mode options should be returned.
* @param string $bundle
* The name of the bundle.
*
* @return array
* An array of view mode labels, keyed by the display mode ID.
*/
public function getViewModeOptionsByBundle($entity_type_id, $bundle);
/**
* Returns an array of enabled form mode options by bundle.
*
* @param string $entity_type_id
* The entity type whose form mode options should be returned.
* @param string $bundle
* The name of the bundle.
*
* @return array
* An array of form mode labels, keyed by the display mode ID.
*/
public function getFormModeOptionsByBundle($entity_type_id, $bundle);
/**
* Clears the gathered display mode info.
*
* @return $this
*/
public function clearDisplayModeInfo();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDisplayRepositoryInterface:: |
public | function | Clears the gathered display mode info. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity form mode info for all entity types. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity view mode info for all entity types. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets an array of form mode options. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Returns an array of enabled form mode options by bundle. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity form mode info for a specific entity type. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets an array of view mode options. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Returns an array of enabled view mode options by bundle. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity view mode info for a specific entity type. | 2 |