buttonWidget = $buttonWidget; $this->button = new Tag( 'div' ); $this->input = new Tag( 'div' ); // Initialization $this->addClasses( array( 'oo-ui-actionFieldLayout' ) ); $this->button ->addClasses( array( 'oo-ui-actionFieldLayout-button' ) ) ->appendContent( $this->buttonWidget ); $this->input ->addClasses( array( 'oo-ui-actionFieldLayout-input' ) ) ->appendContent( $this->fieldWidget ); $this->field ->clearContent() ->appendContent( $this->input, $this->button ); } public function getConfig( &$config ) { $config['buttonWidget'] = $this->buttonWidget; return parent::getConfig( $config ); } }