protected function addAction($label, $icon, $route)
    {
        $action = (object)[
            'route' => $route,
            'icon'  => 'fa-' . $icon,
            'text'  => $label,
        ];

        $this->actions->add($action);
    }
protected function addAction($label, $icon, $route)
    {
        $action = (object)[
            'route' => $route,
            'icon'  => 'fa-' . $icon,
            'text'  => $label,
        ];

        $this->actions->add($action);
    }
protected function addAction ( $ label , $ icon , $ route ) { $ action = ( object ) [ 'route' => $ route , 'icon' => 'fa-' . $ icon , 'text' => $ label , ] ; $ this -> actions -> add ( $ action ) ; }
Adds the action to the collection.

@param string $label
@param string $icon
@param string $route
Adds the action to the collection .