protected function storeButton(ButtonBuilder $buttonBuilder, FormBuilderInterface $form, $position)
    {

        if (!isset($this->buttons[$form->getName()])) {
            $this->buttons[$form->getName()] = array();
        }

        $this->buttons[$form->getName()][$position] = $buttonBuilder;
    }
protected function storeButton(ButtonBuilder $buttonBuilder, FormBuilderInterface $form, $position)
    {

        if (!isset($this->buttons[$form->getName()])) {
            $this->buttons[$form->getName()] = array();
        }

        $this->buttons[$form->getName()][$position] = $buttonBuilder;
    }
protected function storeButton ( ButtonBuilder $ buttonBuilder , FormBuilderInterface $ form , $ position ) { if ( ! isset ( $ this -> buttons [ $ form -> getName ( ) ] ) ) { $ this -> buttons [ $ form -> getName ( ) ] = array ( ) ; } $ this -> buttons [ $ form -> getName ( ) ] [ $ position ] = $ buttonBuilder ; }
Stores a button for later rendering

@param ButtonBuilder        $buttonBuilder
@param FormBuilderInterface $form
@param string               $position
Stores a button for later rendering