abstract class BaseSettingType extends AbstractType | abstract class BaseSettingType extends AbstractType | ||||
{ | { | ||||
protected $em; | |||||
protected $settingDefinition; | |||||
protected EntityManagerInterface $em; | |||||
protected SiteSettingDefinitionInterface $settingDefinition; | |||||
public function __construct( | public function __construct( | ||||
EntityManagerInterface $entityManager, | EntityManagerInterface $entityManager, |
{% endblock %} | {% endblock %} | ||||
{% endembed %} | {% endembed %} | ||||
{# {% for child in form.settings %}#} | |||||
{# {% do child.setRendered() %}#} | |||||
{# {% endfor %}#} | |||||
{% do form.settings.setRendered %} | |||||
{{ form_end(form) }} | {{ form_end(form) }} | ||||
{% endblock %} | {% endblock %} |