for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lakion\CmsPlugin\Form\Type;
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
final class RouteType extends AbstractResourceType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options = [])
$builder
->add('name', TextType::class, [
'label' => 'lakion_cms.form.route.name',
])
->add('content', StaticContentChoiceType::class, [
'label' => 'lakion_cms.form.route.content',
'choice_label' => 'title',
'choice_translation_domain' => false,
;
}
public function getBlockPrefix()
return 'lakion_cms_route';