Not compatible with Views Bulk Operations 4

Created on 11 October 2022, over 1 year ago
Updated 9 May 2024, about 1 month ago

Problem/Motivation

When using VBO 4, all views that have views bulk operations in the site give the error:

Fatal error: Declaration of Drupal\civicrm_entity\Plugin\Action\CivicrmContactAddToGroup::buildPreConfigurationForm(array $form, array $values, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\views_bulk_operations\Action\ViewsBulkOperationsPreconfigurationInterface::buildPreConfigurationForm(array $element, array $values, Drupal\Core\Form\FormStateInterface $form_state): array in /home/xx/public_html/modules/contrib/civicrm_entity/src/Plugin/Action/CivicrmContactAddToGroup.php on line 87

Steps to reproduce

Use version 4 of Views Bulk Operations: https://www.drupal.org/project/views_bulk_operations β†’

Proposed resolution

Adapt the class CivicrmContactAddToGroup to make it compatible with VBO 4

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium hansrossel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024