Identity/SecurityIdentityManager.php
private function getRoleNames(array $sids)
    {
        $roles = [];

        foreach ($sids as $sid) {
            if ($sid instanceof RoleSecurityIdentity) {
                $roles[] = $sid->getIdentifier();
            }
        }

        return $roles;
    }
private function getRoleNames(array $sids)
    {
        $roles = [];

        foreach ($sids as $sid) {
            if ($sid instanceof RoleSecurityIdentity) {
                $roles[] = $sid->getIdentifier();
            }
        }

        return $roles;
    }
private function getRoleNames ( array $ sids ) { $ roles = [ ] ; foreach ( $ sids as $ sid ) { if ( $ sid instanceof RoleSecurityIdentity ) { $ roles [ ] = $ sid -> getIdentifier ( ) ; } } return $ roles ; }
Get the role names of security identities.

@param SecurityIdentityInterface[] $sids The security identities

@return string[]
Get the role names of security identities .