public function dispatch($options)
{
// We will also check for a "route" or "action" parameter on the array so that
// developers can easily specify a route or controller action when creating the
// menus.
if (isset($options['url'])) {
return $this->getUrl($options);
} elseif (isset($options['route'])) {
return $this->getRoute($options['route']);
} elseif (isset($options['action'])) {
return $this->getControllerAction($options['action']);
}
return null;
}