public function ILT::getMembersIds in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::getMembersIds()
Returns ids of the members of the ILT.
Return value
int[] Array of users IDs.
Overrides ILTInterface::getMembersIds
2 calls to ILT::getMembersIds()
- ILT::getMembers in src/
Entity/ ILT.php - Returns members of the ILT.
- ILT::isMember in src/
Entity/ ILT.php - Checks if the user is a member of the ILT or related training.
File
- src/
Entity/ ILT.php, line 268
Class
- ILT
- Defines the ILT entity.
Namespace
Drupal\opigno_ilt\EntityCode
public function getMembersIds() {
$values = $this
->get('members')
->getValue();
return array_map(function ($value) {
return $value['target_id'];
}, $values);
}