Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Computed Field Plugin

This module allows developers to create computed fields via the Drupal Plugin API. It adds a field type named computed_render_array.

The idea behind this was to simplify and unify the way we code. We were inspired by https://www.drupal.org/project/extra_field. Now whether it is blocks, extra fields or computed fields, we can use plugins and less hooks.

Developer documentation

Implementation example and tips.

Guide maintainers

Mupsi's picture