
Components
- Code
- Documentation
- Miscellaneous
- User interface
Images
Next Major version
The 8.x-2.3 release will be Drupal 10 compatible.
The 8.x-1.x branch will not be supported for Drupal 10.
Licence
http://www.gnu.org/licenses/old-licenses/gpl-2.0.htmlpermet d'ajouter des champs custom via un type de plugin dans le display view. Cela permet d'ajouter une sortie custom sur un view mode. Les extra field ne stoquent pas de data et n'ont pas de field widget. Evite de faire un hook sur un type de contenu pour ajouter du code custom, cela permet de ranger le code différemment.
Release
Covered by Drupal's security advisory policy
Release type : New features
Covered by Drupal's security advisory policy
Release type : Bug fixes
Description
Provides plugin types to add extra fields in entity view and entity form of fieldable entities.
With ExtraFieldDisplay plugins developers can add custom output to entity view modes. Extra fields are treated like regular fields, site builders can place them in entity view modes, the output is rendered in twig templates. Extra fields typically combine entity data and format it for display. Extra fields do not store data and do not have a field widget.
With ExtraFieldForm plugins (8.x-2.x only) developers can add custom fields or markup to entity forms. Site builders can place them in entity form modes. Extra fields do not store data. Extra form fields can be used as replacement for hook_form_alter.
The included extra_field_example module contains ready to use example plugins. Copy them to your custom module and modify them to your needs.
Know limitation: ExtraFieldForm plugins can not be used for paragraphs, inline entity forms, blocks in layout builder. See details in this issue.
Other modules
- Extra Field Plus module: Provides an interface for Extra Field display settings.
- Markup module: To add fixed markup to forms and view modes.
- Twig markup module: To display content using twig syntax on forms and view modes.
Toutes les informations proviennent du site drupal.org