protected function ActivityFactory::getFieldRecipientGroup in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.2 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.3 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.4 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.5 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.6 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.7 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 8.8 modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 10.3.x modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 10.0.x modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
- 10.1.x modules/custom/activity_creator/src/ActivityFactory.php \Drupal\activity_creator\ActivityFactory::getFieldRecipientGroup()
Get field value for 'recipient_group' field from data array.
1 call to ActivityFactory::getFieldRecipientGroup()
- ActivityFactory::buildActivities in modules/
custom/ activity_creator/ src/ ActivityFactory.php - Build the activities based on a data array.
File
- modules/
custom/ activity_creator/ src/ ActivityFactory.php, line 423
Class
- ActivityFactory
- Class ActivityFactory to create Activity items based on ActivityLogs.
Namespace
Drupal\activity_creatorCode
protected function getFieldRecipientGroup($data) {
$value = NULL;
if (isset($data['recipient']['target_type']) && $data['recipient']['target_type'] === 'group') {
// Should be in an array for the field.
$value = [
$data['recipient'],
];
}
return $value;
}