eZ\Publish\Core\FieldType\GatewayBasedStorage::getGateway PHP Метод

getGateway() защищенный Метод

Retrieve the fitting gateway, base on the identifier in $context.
protected getGateway ( array $context ) : StorageGateway
$context array
Результат StorageGateway
    protected function getGateway(array $context)
    {
        if (!isset($this->gateways[$context['identifier']])) {
            throw new \OutOfBoundsException("No gateway for {$context['identifier']} available.");
        }
        $gateway = $this->gateways[$context['identifier']];
        $gateway->setConnection($context['connection']);
        return $gateway;
    }