for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file was created by developers working at BitBag
* Do you need more information about us and what we do? Visit our https://bitbag.io website!
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
*/
declare(strict_types=1);
namespace BitBag\SyliusCmsPlugin\Form\Type\Translation;
use BitBag\SyliusCmsPlugin\Form\Type\WysiwygType;
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
final class BlockTranslationType extends AbstractResourceType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
$builder
->add('name', TextType::class, [
'label' => 'bitbag_sylius_cms_plugin.ui.name',
'required' => false,
])
->add('link', TextType::class, [
'label' => 'bitbag_sylius_cms_plugin.ui.link',
->add('content', WysiwygType::class, [
;
}
public function getBlockPrefix(): string
return 'bitbag_sylius_cms_plugin_text_translation';