コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function getTemplateVars(Request $request, FormInterface $form)
 {
     return ['objectCount' => $this->queryGenerator->getCount($request, $this->configuration->getName()), 'formAction' => $this->getActionUrl($this->getType(), $form->getData(), $this->getGridUrlParameters($request))] + parent::getTemplateVars($request, $form);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function getTemplateVars(Request $request, FormInterface $form)
 {
     $entityIds = $this->massActionDispatcher->dispatch($request);
     return ['objectCount' => count($entityIds), 'formAction' => $this->getActionUrl($this->getType(), $form->getData(), $this->getGridUrlParameters($request))] + parent::getTemplateVars($request, $form);
 }