breadcrumbs when list of activity

@param String $type
330724
public function onActivity($type = null)
    {

        Breadcrumbs::register('logger-activity', function($breadcrumbs) {
            $breadcrumbs->push('Activity Log', handles('antares::logger/activity/index'));
        });
        if (!is_null($type)) {
            Breadcrumbs::register('logger-activity-' . $type, function($breadcrumbs) use($type) {
                $breadcrumbs->push(ucfirst($type) . ' Log', handles('antares::logger/activity/' . $type));
            });
            view()->share('breadcrumbs', Breadcrumbs::render('logger-activity-' . $type));
        } else {
            view()->share('breadcrumbs', Breadcrumbs::render('logger-activity'));
        }
    }
260069
public function addCustomType($type)
    {
        if (!Type::hasType($type)) {
            throw TypeException::typeDoesNotExist($type);
        }

        if ($this->hasCustomType($type)) {
            throw PlatformException::customTypeAlreadyExists($type);
        }

        $this->customTypes[] = $type;
    }
253868
public function onApiLogs()
    {
        $this->breadcrumbs->register(self::$name, function($breadcrumbs) {
            $breadcrumbs->push(trans('antares/api::title.api_log'));
        });
        $this->shareOnView(self::$name);
    }
232651
private function getNotifications ($type)
		{
			$data = [];
			/** @var Notification $notification */
			foreach ($this->_data as $notification)
			{
				if ($notification->type == $type)
					$data[] = $notification;
			}

			return $data;
		}
531179
public void createBreadcrumbs(List<Category> categories) {
    categories.forEach(category -> {
      category.setBreadcrumb(getBreadcrumb() + BREADCRUMB_DELIMITER + category.getDescription());
      if (!Objects.equals(category.getGroups(), null)) {
        category.getGroups().forEach(group -> group.addToBreadcrumb(getBreadcrumb()));
      }
      if (!Objects.equals(category.getChildren(), null)) {
        category.createBreadcrumbs(category.getChildren());
      }
    });
  }
77680
private function setPageBreadcrumb()
    {
        $this->breadcrumbItems = collect();
        $this->addBreadcrumbLink('Home', '/', 'home');

        $prevTitle = 'Home';
        foreach ($this->parentPages as $k => $page) {

            if ($page->title != $prevTitle) {
                $url = (is_slug_url($page->slug) ? $page->slug : url($page->url));
                $this->addBreadcrumbLink($page->title, $url);
            }

            $prevTitle = $page->title;
        }
    }
90544
public static function addToQueue($path, $type)
    {
        if ($type != self::TYPE_DIR && $type != self::TYPE_FILE) {
            throw new \Exception(sprintf('Invalid $type parameter "%s"', $type));
        }

        self::$cleanupQueue[] = ['path' => $path, 'type' => $type];
    }
663285
public function setUrlType($type)
    {
        if (!in_array($type, [self::URL_APPEND, self::URL_CLEAN])) {
            throw new \Exception("Unsupported Url type.");
        }

        $this->urlType = $type;
        return $this;
    }
1264384
public static function addBreadcrumb(Breadcrumb $breadcrumb): void
    {
        $self = Hub::getCurrent()->getIntegration(self::class);

        if (!$self instanceof self) {
            return;
        }

        addBreadcrumb($breadcrumb);
    }
98031
public function addLogProcessor($type)
    {
        switch ($type) {
            case 'web':
                $this->pushProcessor(new WebProcessor());
                break;

            case 'intro':
            case 'introspection':
                $this->pushProcessor(new IntrospectionProcessor());
                break;

            default:
                throw new \Exception('Unknown Log Processor', 1);
                break;
        }
    }
865371
public function onAddedToType(TypeInterface &$type)
    {
        parent::onAddedToType($type);

        if ($this->getAddIndex()) {
            $type->addIndex(new Index($this->name));
        }

        $type->addTrait(PositionInterface::class, PositionInterfaceImplementation::class);
    }
668997
public function feedAction($type)
    {
        $articles = $this->get('app_repository_article')->getActiveArticles();

        $feed = $this->get('eko_feed.feed.manager')->get('article');
        $feed->addFromArray($articles);

        return new Response($feed->render($type)); // or 'atom'
    }
897907
public function breadcrumbs_add($url, $name, $active = true, $class = '', $children = array()) {
		if (!isset($this->controller)) {
			return false;
		}
		$this->controller->breadcrumbs[] = (object)array('url' => $url, 'name' => $name, 'active' => $active, 'class' => $class, 'children' => $children);
		return true;
	}
768877
protected function setBreadcrumbListCategory()
    {
        $breadcrumbs = array();

        $breadcrumbs[] = array(
            'url' => $this->url('admin'),
            'text' => $this->text('Dashboard')
        );

        $breadcrumbs[] = array(
            'url' => $this->url('admin/content/category-group'),
            'text' => $this->text('Category groups')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
1140879
public function afterConsume(int $type): void
    {
        // Put in escaping mode if it were not escaping and there is a backslash token.
        if (! $this->currentlyEscaping && $type === AnnotationLexer::T_BACKSLASH) {
            $this->currentlyEscaping = true;
        } else {
            $this->currentlyEscaping = false;
        }
    }
720565
private function cleanBreadcrumb($breadcrumb)
	{
		$newArray = array();

		if (!empty($breadcrumb))
			foreach ($breadcrumb as $page)
			{
				if (!empty($page->tree_page_id))
					array_push($newArray, $page->tree_page_id);
			}

		return $newArray;
	}
1362896
public function set_caching($type)
    {
        if ($type) {
            $this->caching = $type;
        }
        else {
            if ($this->cache) {
                $this->cache->close();
            }
            $this->cache   = null;
            $this->caching = false;
        }
    }