public function action($action, $content, array $parameters = [], array $attributes = [])
    {
        $action = [$action, $parameters];

        $this->makeSubItem('action', compact('action', 'content', 'attributes'));
    }
public function action($action, $content, array $parameters = [], array $attributes = [])
    {
        $action = [$action, $parameters];

        $this->makeSubItem('action', compact('action', 'content', 'attributes'));
    }
public function action ( $ action , $ content , array $ parameters = [ ] , array $ attributes = [ ] ) { $ action = [ $ action , $ parameters ] ; $ this -> makeSubItem ( 'action' , compact ( 'action' , 'content' , 'attributes' ) ) ; }
Add an action sub-item to parent.

@param  string  $action
@param  string  $content
@param  array   $parameters
@param  array   $attributes
Add an action sub - item to parent .