protected static function BusinessRulesViewsSelection::convertEntityIdsToUuids in Business Rules 8
Same name and namespace in other branches
- 2.x src/Plugin/EntityReferenceSelection/BusinessRulesViewsSelection.php \Drupal\business_rules\Plugin\EntityReferenceSelection\BusinessRulesViewsSelection::convertEntityIdsToUuids()
1 call to BusinessRulesViewsSelection::convertEntityIdsToUuids()
- BusinessRulesViewsSelection::updateDependentField in src/
Plugin/ EntityReferenceSelection/ BusinessRulesViewsSelection.php - Update the dependent field options.
File
- src/
Plugin/ EntityReferenceSelection/ BusinessRulesViewsSelection.php, line 214
Class
- BusinessRulesViewsSelection
- Plugin override of the 'selection' entity_reference.
Namespace
Drupal\business_rules\Plugin\EntityReferenceSelectionCode
protected static function convertEntityIdsToUuids($entity_ids, string $entity_type) {
if (!is_array($entity_ids)) {
$entity_ids = [
$entity_ids,
];
}
$uuids = [];
foreach ($entity_ids as $entity_id) {
$uuids[] = \Drupal::entityTypeManager()
->getStorage($entity_type)
->load($entity_id)
->uuid();
}
return $uuids;
}