public function currentRouteName() { return $this->current() ? $this->current()->getName() : null; }
protected function isResourceRoute() { if ($routeName = $this->router->currentRouteName()) { if (ends_with($routeName, ['.create', '.edit'])) { return TRUE; } } return FALSE; }