diff --git a/lib/navigationlib.php b/lib/navigationlib.php index f9012eaadc1..c1ec3a85e74 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -592,6 +592,15 @@ class navigation_node implements renderable { } } + /** + * Used to easily determine if this link in the breadcrumbs has a valid action/url. + * + * @return boolean + */ + public function has_action() { + return !empty($this->action); + } + /** * Gets the CSS class to add to this node to describe its type * diff --git a/theme/noname/templates/core/navbar.mustache b/theme/noname/templates/core/navbar.mustache index cb3a7ba751c..b2aefec4da8 100644 --- a/theme/noname/templates/core/navbar.mustache +++ b/theme/noname/templates/core/navbar.mustache @@ -1,10 +1,10 @@ \ No newline at end of file +