Sylius\Bundle\ResourceBundle\Grid\Parser\OptionsParserInterface::parseOptions PHP Method

parseOptions() public method

public parseOptions ( array $parameters, Request $request, mixed $data = null ) : array
$parameters array
$request Symfony\Component\HttpFoundation\Request
$data mixed
return array
    public function parseOptions(array $parameters, Request $request, $data = null);

Usage Example

示例#1
0
 /**
  * {@inheritdoc}
  */
 public function renderAction(GridViewInterface $gridView, Action $action, $data = null)
 {
     $type = $action->getType();
     if (!isset($this->actionTemplates[$type])) {
         throw new \InvalidArgumentException(sprintf('Missing template for action type "%s".', $type));
     }
     $options = $this->optionsParser->parseOptions($action->getOptions(), $gridView->getRequestConfiguration()->getRequest(), $data);
     return $this->twig->render($this->actionTemplates[$type], ['grid' => $gridView, 'action' => $action, 'data' => $data, 'options' => $options]);
 }
All Usage Examples Of Sylius\Bundle\ResourceBundle\Grid\Parser\OptionsParserInterface::parseOptions
OptionsParserInterface