Install
Works with Drupal: ^11.4 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
11.53 KB
MD5: 4b326fc5ee504986758b191c196f67fd
SHA-1: e8c75be47cfaeae2da52d7b51947a8af3827678f
SHA-256: c204b682cf6ba3377215058354e6557512c7a2c78bc982ee8999bc5a3adb9939
Download zip
18.07 KB
MD5: df5cc4f1e89b0b7d19c62aadf59bd613
SHA-1: 0419629bb50a141144b63eee8acd9063d5f95c3d
SHA-256: 195c66e807761832a6668082203b5a6d4928d9a5ebe518053e62ea4377cf2070
Release notes
First release of the 1.1.x branch. It adds official Drupal 12 support and modernizes the module's code.
Requirements
- Drupal 11.4 or later, or Drupal 12. Sites on Drupal 10 or Drupal 11.3 and earlier should stay on 1.0.x.
- CiviCRM with the Form Builder (Afform) extension enabled.
Upgrading from 1.0.x
Rebuild caches after updating (drush cr). There are no database updates, and existing
blocks keep their settings.
Bug fixes
- Forms whose name contains an underscore or dash no longer cause a fatal error on pages showing
the block. - A block that points to a deleted form no longer breaks the page.
- The module no longer requires the core Block module, so it works on sites that only use Layout Builder.
- Block Field fields placed in multi-column Layout Builder sections now load the form correctly.
Changes
- Hooks moved to an OOP hook class; the
.modulefile is removed. - The block plugin uses a PHP attribute instead of an annotation.
- Removed all code deprecated for removal in Drupal 13.
- Added a config schema for the block's settings.
- Added
composer.json.
Tested on Drupal 11.4 and Drupal 12, with blocks placed through block layout and Layout Builder.