/** * {@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); }
/** * {@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); }