src/Toolbar/ToolbarItem.php
public function render(&$node)
    {
        $id = call_user_func_array([&$this, 'fetchId'], $node);
        $output = call_user_func_array([&$this, 'fetchItem'], $node);
        list ($source) = $node;
        list ($plugin) = pluginSplit($source);

        $options = [
            'id'     => $id,
            'output' => $output,
            'class'  => $node['class'],
        ];

        $element = 'Toolbar/wrapper';
        if ($plugin !== null) {
            $element = $plugin . '.' . $element;
        }

        return $this->_view->element($element, $options);
    }
public function render(&$node)
    {
        $id = call_user_func_array([&$this, 'fetchId'], $node);
        $output = call_user_func_array([&$this, 'fetchItem'], $node);
        list ($source) = $node;
        list ($plugin) = pluginSplit($source);

        $options = [
            'id'     => $id,
            'output' => $output,
            'class'  => $node['class'],
        ];

        $element = 'Toolbar/wrapper';
        if ($plugin !== null) {
            $element = $plugin . '.' . $element;
        }

        return $this->_view->element($element, $options);
    }
public function render ( & $ node ) { $ id = call_user_func_array ( [ & $ this , 'fetchId' ] , $ node ) ; $ output = call_user_func_array ( [ & $ this , 'fetchItem' ] , $ node ) ; list ( $ source ) = $ node ; list ( $ plugin ) = pluginSplit ( $ source ) ; $ options = [ 'id' => $ id , 'output' => $ output , 'class' => $ node [ 'class' ] , ] ; $ element = 'Toolbar/wrapper' ; if ( $ plugin !== null ) { $ element = $ plugin . '.' . $ element ; } return $ this -> _view -> element ( $ element , $ options ) ; }
Render toolbar html.

@param array $node
@return string
Render toolbar html .