[Form] Removed exception in Button::setData(): setData() is now always called for all elements in the
form tree during the initialization of the tree
This commit is contained in:
parent
b9a37703a6
commit
07d14e5ff2
@ -200,7 +200,8 @@ class Button implements \IteratorAggregate, FormInterface
|
|||||||
*/
|
*/
|
||||||
public function setData($modelData)
|
public function setData($modelData)
|
||||||
{
|
{
|
||||||
throw new BadMethodCallException('Buttons cannot have data.');
|
// called during initialization of the form tree
|
||||||
|
// noop
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user