/**
  * @param ContentView $contentView
  *
  * @return array
  */
 private function extractParameters(ContentView $contentView)
 {
     $queryParameters = [];
     $queryOptions = $contentView->getParameter('query');
     if (isset($queryOptions['parameters'])) {
         foreach ($queryOptions['parameters'] as $name => $value) {
             $queryParameters[$name] = $this->evaluateExpression($contentView, $value);
         }
     }
     return $queryParameters;
 }
 /**
  * @depends testGetParameter
  * @expectedException \InvalidArgumentException
  * @covers \eZ\Publish\Core\MVC\Symfony\View\ContentView::__construct
  * @covers \eZ\Publish\Core\MVC\Symfony\View\ContentView::setParameters
  * @covers \eZ\Publish\Core\MVC\Symfony\View\ContentView::getParameters
  */
 public function testGetParameterFail(ContentView $contentView)
 {
     $contentView->getParameter('nonExistent');
 }
 /**
  * Returns parameter value by $parameterName.
  * Throws an \InvalidArgumentException if $parameterName is not set.
  *
  * @param string $parameterName
  *
  * @throws \InvalidArgumentException
  *
  * @return mixed
  */
 public function getParameter($parameterName)
 {
     return $this->contentView->getParameter($parameterName);
 }