/** * Configures the link for the menu item. * * @param array|string $options * @return null */ public function configureLink($options) { if (!is_array($options)) { $path = ['url' => $options]; } elseif (isset($options['raw']) and $options['raw'] == true) { $path = null; } else { $path = array_only($options, ['url', 'route', 'action', 'secure']); } if (!is_null($path)) { $path['prefix'] = $this->builder->getLastGroupPrefix(); } $this->link = isset($path) ? new Link($path) : null; $this->checkActiveStatus(); }