setDefaults([ 'mapped' => false, 'compound' => false, 'label' => false, 'invalid_message' => 'Please select a valid option.', ]); $resolver->setAllowedTypes('label', ['string', 'bool']); } /** * Get the type * * @date 2022-05-21 * * @return string */ public function getType() { return 'repeater_start'; } /** * @inheritDoc */ public function buildView(FormView $view, FormInterface $form, array $options) { parent::buildView($view, $form, $options); } public function getBlockPrefix() { return 'repeater_start'; } }