for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace steevanb\SymfonyFormOptionsBuilder\Behavior;
trait AllowExtraFieldsTrait
{
use OptionAccessorsTrait;
/**
* @param bool $allow
* @return $this
* @link http://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields
*/
public function setAllowExtraFields($allow = true)
return $this->setOption('allow_extra_fields', $allow);
}
* @return bool|string
public function getAllowExtraFields()
return $this->getOption('allow_extra_fields');
public function removeAllowExtraFields()
return $this->removeOption('allow_extra_fields');