Sulu\Bundle\CustomUrlBundle\Admin\CustomUrlAdmin::getSecurityContexts PHP Method

getSecurityContexts() public method

public getSecurityContexts ( )
    public function getSecurityContexts()
    {
        $webspaceContexts = [];
        /* @var Webspace $webspace */
        foreach ($this->webspaceManager->getWebspaceCollection() as $webspace) {
            $webspaceContexts[self::getCustomUrlSecurityContext($webspace->getKey())] = [PermissionTypes::VIEW, PermissionTypes::ADD, PermissionTypes::EDIT, PermissionTypes::DELETE];
        }
        return ['Sulu' => ['Webspace Settings' => $webspaceContexts]];
    }