public function createAction($name, $type = null, array $options = [])
    {
        $this->preventIfLocked();

        if (null !== $type) {
            return $this->getFactory()->createActionBuilder($name, $type, $options);
        }

        throw new \InvalidArgumentException('Action type guessing is not yet supported.');
        // TODO return $this->getFormFactory()->createActionBuilderForProperty($this->getDataClass(), $name, $options);
    }
public function createAction($name, $type = null, array $options = [])
    {
        $this->preventIfLocked();

        if (null !== $type) {
            return $this->getFactory()->createActionBuilder($name, $type, $options);
        }

        throw new \InvalidArgumentException('Action type guessing is not yet supported.');
        // TODO return $this->getFormFactory()->createActionBuilderForProperty($this->getDataClass(), $name, $options);
    }
public function createAction ( $ name , $ type = null , array $ options = [ ] ) { $ this -> preventIfLocked ( ) ; if ( null !== $ type ) { return $ this -> getFactory ( ) -> createActionBuilder ( $ name , $ type , $ options ) ; } throw new \ InvalidArgumentException ( 'Action type guessing is not yet supported.' ) ; // TODO return $this->getFormFactory()->createActionBuilderForProperty($this->getDataClass(), $name, $options); }
Creates a action builder.

@param string $name
@param string $type
@param array  $options

@return Action\ActionBuilderInterface
Creates a action builder .