public function fetchValue($data, SplashRequestContext $context)
    {
        $key = $data['key'];
        $compulsory = $data['compulsory'];
        $default = $data['default'] ?? null;

        return $context->getParameter($key, $compulsory, $default);
    }
public function fetchValue($data, SplashRequestContext $context)
    {
        $key = $data['key'];
        $compulsory = $data['compulsory'];
        $default = $data['default'] ?? null;

        return $context->getParameter($key, $compulsory, $default);
    }
public function fetchValue ( $ data , SplashRequestContext $ context ) { $ key = $ data [ 'key' ] ; $ compulsory = $ data [ 'compulsory' ] ; $ default = $ data [ 'default' ] ?? null ; return $ context -> getParameter ( $ key , $ compulsory , $ default ) ; }
Returns the value to be injected in this parameter.

@param mixed                $data    The data generated by "getFetcherData"
@param SplashRequestContext $context

@return mixed
Returns the value to be injected in this parameter .