Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/donquixote/drupal-entdisp

Entity display plugin (Drupal module)
https://github.com/donquixote/drupal-entdisp

Last synced: 7 days ago
JSON representation

Entity display plugin (Drupal module)

Awesome Lists containing this project

README

        

# EntDisP ("Entity Display Handler")

Entdisp is a plugin system for entity display handlers, based on the [CfrPlugin](https://github.com/donquixote/drupal-cfr) API.

An "entity display handler" is an object that builds render arrays from entities.
The interface, `Drupal\renderkit\EntityDisplay\EntityDisplayInterface`, and most implementations, live in the [Renderkit](https://github.com/donquixote/drupal-renderkit) module.

EntDisP provides a way to expose these handlers as plugins.

## Integration

So far, there is..

* A views row plugin, [EntdispViewsRowPlugin](src/CtoolsPlugin/views/row/EntdispViewsRowPlugin.php).
* A views field handler, [EntdispRowPlugin](src/CtoolsPlugin/views/field/EntdispViewsFieldHandler.php).
* An entityreference field formatter, see [entdisp.field.inc](entdisp.field.inc).