Sharing/SharingManager.php
private function preloadPermissionsOfSharingRoles(array $objects): void
    {
        if (!$this->hasIdentityRoleable()) {
            return;
        }

        $subjects = $this->buildMapSubject($objects);

        foreach ($subjects as $id => $subject) {
            if (!isset($this->cacheRoleSharing[$id])
                    && isset($this->cacheSubjectSharing[$id]['sharings'])) {
                $this->buildCacheRoleSharing($this->cacheSubjectSharing[$id]['sharings'], $id);
            }
        }
    }
private function preloadPermissionsOfSharingRoles(array $objects): void
    {
        if (!$this->hasIdentityRoleable()) {
            return;
        }

        $subjects = $this->buildMapSubject($objects);

        foreach ($subjects as $id => $subject) {
            if (!isset($this->cacheRoleSharing[$id])
                    && isset($this->cacheSubjectSharing[$id]['sharings'])) {
                $this->buildCacheRoleSharing($this->cacheSubjectSharing[$id]['sharings'], $id);
            }
        }
    }
private function preloadPermissionsOfSharingRoles ( array $ objects ) : void { if ( ! $ this -> hasIdentityRoleable ( ) ) { return ; } $ subjects = $ this -> buildMapSubject ( $ objects ) ; foreach ( $ subjects as $ id => $ subject ) { if ( ! isset ( $ this -> cacheRoleSharing [ $ id ] ) && isset ( $ this -> cacheSubjectSharing [ $ id ] [ 'sharings' ] ) ) { $ this -> buildCacheRoleSharing ( $ this -> cacheSubjectSharing [ $ id ] [ 'sharings' ] , $ id ) ; } } }
Preload permissions of sharing roles.

@param object[] $objects The objects
Preload permissions of sharing roles .