/** * @inheritDoc */ public function configureOptions(OptionsResolver $resolver, $property, $templatePath) { parent::configureOptions($resolver, $property, $templatePath); $resolver->setDefault('callback', null); $resolver->setAllowedTypes('callback', ['closure', 'null', 'array']); $resolver->setRequired('callback'); }
/** * @inheritDoc */ public function configureOptions(OptionsResolver $resolver, $property, $templatePath) { parent::configureOptions($resolver, $property, $templatePath); $class = get_class($this); $resolver->setDefault('label', $this->templating->render($templatePath . strtolower(str_replace('Type', '', substr($class, strrpos($class, '\\') + 1))) . '.html.twig')); $resolver->remove('url'); $resolver->remove('sort'); }
/** * @inheritDoc */ public function configureOptions(OptionsResolver $resolver, $property, $templatePath) { parent::configureOptions($resolver, $property, $templatePath); $resolver->remove('url'); $resolver->remove('sort'); $resolver->setDefault('ui', true); $resolver->setRequired('actions'); $resolver->setAllowedTypes('actions', 'array'); }