You are here

function activity_creator_update_8801 in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_creator/activity_creator.install \activity_creator_update_8801()
  2. 10.3.x modules/custom/activity_creator/activity_creator.install \activity_creator_update_8801()
  3. 10.0.x modules/custom/activity_creator/activity_creator.install \activity_creator_update_8801()
  4. 10.1.x modules/custom/activity_creator/activity_creator.install \activity_creator_update_8801()
  5. 10.2.x modules/custom/activity_creator/activity_creator.install \activity_creator_update_8801()

Update cardinality for field_activity_recipient_user.

After features removal accidentally the cardinality was set to 1 again, due to #3087083 it should be set to UNLIMITED so one activity can be send to multiple users. Noticed in #3125732.

File

modules/custom/activity_creator/activity_creator.install, line 130
Installation code for the activity_creator module.

Code

function activity_creator_update_8801() {

  /** @var \Drupal\update_helper\Updater $updateHelper */
  $updateHelper = \Drupal::service('update_helper.updater');

  // Execute configuration update definitions with logging of success.
  $updateHelper
    ->executeUpdate('activity_creator', 'activity_creator_update_8801');

  // Output logged messages to related channel of update execution.
  return $updateHelper
    ->logger()
    ->output();
}