id())->get('field_linked_opencase_actor')->target_id; } public static function userIsInvolved($account, $case) { $actorId = self::getLinkedActorId($account); $involvedIds = array_column($case->actors_involved->getValue(), 'target_id'); return in_array($actorId, $involvedIds); } }