for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
* (c) Adam Piotrowski <[email protected]>
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\Bundle\CmsBundle\Service\Layout\Configurator;
use WellCommerce\Bundle\CmsBundle\Controller\Box\NewsBoxController;
use WellCommerce\Bundle\CoreBundle\Layout\Configurator\AbstractLayoutBoxConfigurator;
use WellCommerce\Component\Form\Elements\FormInterface;
use WellCommerce\Component\Form\FormBuilderInterface;
* Class NewsBoxConfigurator
* @author Adam Piotrowski <[email protected]>
final class NewsBoxConfigurator extends AbstractLayoutBoxConfigurator
{
public function __construct(NewsBoxController $controller)
$this->controller = $controller;
}
public function getType(): string
return 'News';
public function addFormFields(FormBuilderInterface $builder, FormInterface $form, $defaults)
$fieldset = $this->getFieldset($builder, $form);
$fieldset->addChild($builder->getElement('tip', [
'tip' => 'layout_box.news.tip',
]));