Install

Works with Drupal: ^8 || ^9

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 25.03 KB
MD5: 4d06fa6ec6ab0fe440ab40d041e5f112
SHA-1: f0df6abac4eaa8c60111a307d70e0ddadfce518f
SHA-256: 8d2647ed46ed384cab70273a4e02f2fdef4ed661954342135ebba9b228979ba2
Download zip 54.54 KB
MD5: faf4cdafe041d9396889e706b0429999
SHA-1: eff7b159d456d7fa13d130b784abe3c365f7bfe1
SHA-256: 42e6135890da584e4114e378e8f2dcb4da82ab28a2fb7bb76853a1d8ebf7d1fe

Release notes

New functionality

New ExtraFieldForm plugin type which allows developers to create custom form elements for fieldable entities. These form elements can be used for markup, additional input element, to alter the entity form or all at the same time.

Adds a description property to ExtraFieldDisplay plugins. The description is also available in the new ExtraFieldForm plugin. The description is optional.

API

The API is backwards compatible with the 8.x-1.x branch.

A number of methods have been moved from the ExtraFieldDisplayManager class into a new ExtraFieldManagerBase parent class. These methods are shared by ExtraFieldDisplayManager and ExtraFieldFormManager. Because ExtraFieldDisplayManager extends ExtraFieldManagerBase this change is backwards compatible.

  • ExtraFieldManagerBase::matchEntityBundleKey
  • ExtraFieldManagerBase::supportedEntityBundles
  • ExtraFieldManagerBase::allEntityBundles
  • ExtraFieldManagerBase::fieldName
  • ExtraFieldManagerBase::entityBundleKey

Adds hook_extra_field_form_info_alter() to alter the ExtraFieldForm plugin info.

Created by: sutharsan
Created on: 24 Nov 2020 at 21:29 UTC
Last updated: 24 Nov 2020 at 21:29 UTC
New features

Other releases