Sharing/SharingManager.php
private function buildMapSubject(array $objects)
    {
        $subjects = [];

        foreach ($objects as $object) {
            $subject = SubjectIdentity::fromObject($object);
            $id = SharingUtils::getCacheId($subject);
            $subjects[$id] = $subject;
        }

        return $subjects;
    }
private function buildMapSubject(array $objects)
    {
        $subjects = [];

        foreach ($objects as $object) {
            $subject = SubjectIdentity::fromObject($object);
            $id = SharingUtils::getCacheId($subject);
            $subjects[$id] = $subject;
        }

        return $subjects;
    }
private function buildMapSubject ( array $ objects ) { $ subjects = [ ] ; foreach ( $ objects as $ object ) { $ subject = SubjectIdentity :: fromObject ( $ object ) ; $ id = SharingUtils :: getCacheId ( $ subject ) ; $ subjects [ $ id ] = $ subject ; } return $ subjects ; }
Build the map of subjects with cache ids.

@param object[] $objects The objects

@return array The map of cache id and subject
Build the map of subjects with cache ids .