Sharing/SharingUtils.php
public static function buildOperations(SharingInterface $sharing)
    {
        $operations = [];

        foreach ($sharing->getPermissions() as $permission) {
            $operations[] = $permission->getOperation();
        }

        return $operations;
    }
public static function buildOperations(SharingInterface $sharing)
    {
        $operations = [];

        foreach ($sharing->getPermissions() as $permission) {
            $operations[] = $permission->getOperation();
        }

        return $operations;
    }
public static function buildOperations ( SharingInterface $ sharing ) { $ operations = [ ] ; foreach ( $ sharing -> getPermissions ( ) as $ permission ) { $ operations [ ] = $ permission -> getOperation ( ) ; } return $ operations ; }
Build the operations of sharing entry.

@param SharingInterface $sharing The sharing entry

@return string[]
Build the operations of sharing entry .