lib/Block/Form/EditType.php
protected function addParametersForm(FormBuilderInterface $builder, array $options, array $groups = []): void
    {
        /** @var \Netgen\BlockManager\Block\BlockDefinitionInterface $blockDefinition */
        $blockDefinition = $options['block']->getDefinition();

        $builder->add(
            'parameters',
            ParametersType::class,
            [
                'label' => false,
                'inherit_data' => true,
                'property_path' => 'parameterValues',
                'parameter_definitions' => $blockDefinition,
                'label_prefix' => 'block.' . $blockDefinition->getIdentifier(),
                'groups' => $groups,
            ]
        );
    }
protected function addParametersForm(FormBuilderInterface $builder, array $options, array $groups = []): void
    {
        /** @var \Netgen\BlockManager\Block\BlockDefinitionInterface $blockDefinition */
        $blockDefinition = $options['block']->getDefinition();

        $builder->add(
            'parameters',
            ParametersType::class,
            [
                'label' => false,
                'inherit_data' => true,
                'property_path' => 'parameterValues',
                'parameter_definitions' => $blockDefinition,
                'label_prefix' => 'block.' . $blockDefinition->getIdentifier(),
                'groups' => $groups,
            ]
        );
    }
protected function addParametersForm ( FormBuilderInterface $ builder , array $ options , array $ groups = [ ] ) : void { /** @var \Netgen\BlockManager\Block\BlockDefinitionInterface $blockDefinition */ $ blockDefinition = $ options [ 'block' ] -> getDefinition ( ) ; $ builder -> add ( 'parameters' , ParametersType :: class , [ 'label' => false , 'inherit_data' => true , 'property_path' => 'parameterValues' , 'parameter_definitions' => $ blockDefinition , 'label_prefix' => 'block.' . $ blockDefinition -> getIdentifier ( ) , 'groups' => $ groups , ] ) ; }
Adds the parameters form to the provided builder.
Adds the parameters form to the provided builder .