/**
  * Return whether the table view is active.
  *
  * @param $slug
  * @return bool
  */
 public function isActiveView($slug)
 {
     if ($active = $this->table->getViews()->active()) {
         return $active->getSlug() === $slug;
     }
     return false;
 }