Пример #1
0
 public function prepareItemActions()
 {
     parent::prepareItemActions();
     if ($this->userRoute) {
         return;
     }
     // Remove edit and delete action for non user routes.
     foreach ($this->_actions as $key => $action) {
         if ($action['icon'] == 'pencil-square-o' || $action['icon'] == 'trash-o') {
             unset($this->_actions[$key]);
         }
     }
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     // Always add route to the end of the list.
     $this->sort = -1;
 }