interface ExtraFieldDisplayManagerInterface in Extra Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/ExtraFieldDisplayManagerInterface.php \Drupal\extra_field\Plugin\ExtraFieldDisplayManagerInterface
Provides the Extra field Display plugin manager.
Hierarchy
- interface \Drupal\extra_field\Plugin\ExtraFieldDisplayManagerInterface
Expanded class hierarchy of ExtraFieldDisplayManagerInterface
All classes that implement ExtraFieldDisplayManagerInterface
File
- src/
Plugin/ ExtraFieldDisplayManagerInterface.php, line 11
Namespace
Drupal\extra_field\PluginView source
interface ExtraFieldDisplayManagerInterface {
/**
* Exposes the ExtraFieldDisplay plugins to hook_entity_extra_field_info().
*
* @return array
* The array structure is identical to that of the return value of
* \Drupal\Core\Entity\EntityFieldManagerInterface::getExtraFields().
*
* @see hook_entity_extra_field_info()
*/
public function fieldInfo();
/**
* Appends the renderable data from ExtraField plugins to hook_entity_view().
*
* @param array &$build
* A renderable array representing the entity content. The module may add
* elements to $build prior to rendering. The structure of $build is a
* renderable array as expected by drupal_render().
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity object.
* @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
* The entity view display holding the display options configured for the
* entity components.
* @param string $viewMode
* The view mode the entity is rendered in.
*/
public function entityView(array &$build, ContentEntityInterface $entity, EntityViewDisplayInterface $display, $viewMode);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtraFieldDisplayManagerInterface:: |
public | function | Appends the renderable data from ExtraField plugins to hook_entity_view(). | 1 |
ExtraFieldDisplayManagerInterface:: |
public | function | Exposes the ExtraFieldDisplay plugins to hook_entity_extra_field_info(). | 1 |