ExtraFieldDisplayManagerInterface.php in Extra Field 8
Same filename and directory in other branches
Namespace
Drupal\extra_field\PluginFile
src/Plugin/ExtraFieldDisplayManagerInterface.phpView source
<?php
namespace Drupal\extra_field\Plugin;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
/**
* Provides the Extra field Display plugin manager.
*/
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);
}
Interfaces
Name | Description |
---|---|
ExtraFieldDisplayManagerInterface | Provides the Extra field Display plugin manager. |