Sets breadcrumbs items

@return void
512605
protected function set_items() {
		$year = get_query_var( 'year' );
		if ( ! $year ) {
			$ymd  = get_query_var( 'm' );
			$year = substr( $ymd, 0, 4 );
		}

		$this->set( $this->year( $year ), get_year_link( $year ) );
		$this->set( $this->get_the_archive_title() );
	}
804915
protected function setBreadcrumbListFieldValue()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/content/field'),
            'text' => $this->text('Fields')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
553750
protected function setBreadcrumbEditUserRole()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Roles'),
            'url' => $this->url('admin/user/role')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
1231102
public void setupBreadCrumbBar() {
    String[] stringArr = model.getDisplayedCategory().getBreadcrumb().split(BREADCRUMB_DELIMITER);
    Category[] categories = new Category[stringArr.length];

    // Collecting all parent categories from the displayed category using the breadcrumb.
    // There will always be at least one category which will be added to the breadcrumb.
    categories[0] = searchCategory(stringArr[0]);

    // If there are more than one category in the stringArr[], they will be added. For this reason
    // the Integer in the loop starts with one, thus only the second element in the array is needed.
    for (int i = 1; i < stringArr.length; ++i) {
      stringArr[i] = stringArr[i - 1] + BREADCRUMB_DELIMITER + stringArr[i];
      categories[i] = searchCategory(stringArr[i]);
    }

    breadCrumbView.breadcrumbsItm = BreadCrumbBar.buildTreeModel(categories);
    breadCrumbView.breadCrumbBar.setSelectedCrumb(breadCrumbView.breadcrumbsItm);
  }
978099
protected function _constructCrumbs() {
		if (
			$this instanceof CakeErrorController
			|| $this instanceof PagesController
			|| false === Common::read('Layout.showCrumbs', true)
			|| false === $this->breadCrumbs
			|| !empty($this->breadCrumbs)
		) {
			return;
		}

		// Home.
		$this->breadCrumbs = array(__d('common', "Home") => '/');

		// Dashboard.
		if (CakePlugin::loaded('Users') && Reveal::is('User.loggedin')) {
			$this->breadCrumbs = array(
				__d('common', "Dashboard") => $this->Auth->loginRedirect
			);

			if (
				$this->request->controller == $this->Auth->loginRedirect['controller']
				&& preg_match('/' . $this->Auth->loginRedirect['action'] . '$/', $this->action)
				&& (empty($this->Auth->loginRedirect['plugin']) || $this->plugin == Inflector::camelize($this->Auth->loginRedirect['plugin']))
			) {
				$this->breadCrumbs[__d('common', "Dashboard")] = array();
				return;
			}
		}

		// Plugin.
		if (!empty($this->plugin)) {
			$title = empty($this->crumbTitles[$this->plugin]) ? $this->plugin : $this->crumbTitles[$this->plugin];
			$this->breadCrumbs[$title] = array('plugin' => Inflector::underscore($this->plugin), 'controller' => Inflector::underscore($this->plugin), 'action' => 'index');
			if (Router::normalize(Router::url($this->breadCrumbs[$title])) == $this->request->here) {
				$this->breadCrumbs[$title] = array();
			}

			if (($this->plugin == $this->name || (!empty($this->crumbTitles[$this->name]) && $this->plugin == $this->crumbTitles[$this->name])) && in_array('index', explode('_', $this->action))) {
				return;
			}
		}

		// Controller.
		if (!empty($this->crumbTitles[$this->name])) {
			$this->breadCrumbs[$this->crumbTitles[$this->name]] = array('action' => 'index');
		} else if (!array_key_exists($this->name, $this->crumbTitles)) {
			$this->breadCrumbs[!empty($this->modelName) ? Inflector::pluralize($this->modelName) : Inflector::humanize(Inflector::underscore($this->name))] = array('action' => 'index');
		}

		if (array_pop(explode('_', $this->action)) == 'index') {
			$this->breadCrumbs[end(array_keys($this->breadCrumbs))] = array();
			return;
		}

		// Action
		if (!empty($this->crumbTitles[$this->action])) {
			$this->breadCrumbs[$this->crumbTitles[$this->action]] = array();
		} else if (!array_key_exists($this->action, $this->crumbTitles)) {
			$action = str_replace($this->request->prefix, '', $this->action);
			if ($action == $this->action) {
				$action = str_replace(Configure::read($this->plugin . '.routingPrefixes.' . $this->request->prefix), '', $this->action);
			}
			$this->breadCrumbs[Inflector::humanize(Inflector::underscore($action))] = array();
		}

	}
748490
protected function set_items() {
		$post_type = $this->get_post_type();

		if ( ( is_category() || is_tag() || is_date() || is_author() ) || ( is_single() && 'post' === $post_type ) ) {
			$show_on_front  = get_option( 'show_on_front' );
			$page_for_posts = get_option( 'page_for_posts' );

			if ( 'page' === $show_on_front && $page_for_posts ) {
				$this->set( get_the_title( $page_for_posts ), get_permalink( $page_for_posts ) );
			}
		}
	}
873543
protected function setBreadcrumbIndexProduct()
    {
        $breadcrumbs = array();

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

        $categories = $this->getCategorytBreadcrumbsProduct($this->data_product['category_id']);
        $this->setBreadcrumbs(array_merge($breadcrumbs, $categories));
    }
412259
protected function setBreadcrumbListEditor()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/module/list'),
            'text' => $this->text('Modules')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
1308056
protected function setBreadcrumbEditCurrency()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/settings/currency'),
            'text' => $this->text('Currencies')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
79918
public function setup() {
		// In order to continue, taxonomy term ID must be specified.
		if ( ! $this->get_id() ) {
			throw new Carbon_Breadcrumb_Exception( 'The term breadcrumb items must have term ID specified.' );
		}

		// In order to continue, taxonomy must be specified.
		if ( ! $this->get_subtype() ) {
			throw new Carbon_Breadcrumb_Exception( 'The term breadcrumb items must have taxonomy specified.' );
		}

		// Retrieve term object.
		$subtype           = $this->get_subtype();
		$this->term_object = get_term_by( 'id', $this->get_id(), $subtype );

		parent::setup();
	}
1196457
public function crumbMenu()
    {
        $nb = $this->spawn('crumbMenu', new Collection());

        $item = $this->active();
        $items = [$item];
        while ($item->hasParent()) {
            $item = $item->parent();
            array_unshift($items, $item);
        }

        foreach ($items as $item) {
            $nb->add($item->title, $item->url());
        }

        return $nb;
    }
700871
public function setListItemElement(string $element): Breadcrumbs
    {
        $this->validateElement('allowedListItemElement', $element);

        $this->setOption('listItemElement', $element);

        return $this;
    }
1221472
protected function set_items() {
		$show_on_front  = get_option( 'show_on_front' );
		$page_for_posts = get_option( 'page_for_posts' );
		if ( 'page' === $show_on_front && $page_for_posts ) {
			$title = get_the_title( $page_for_posts );
			$this->set( $title );
		}
	}
567010
public function addItem(BreadcrumbItem $item): void
    {
        if ($this->items->contains($item)) {
            throw new InvalidArgumentException(sprintf('Item « %s » is already in breadcrumb', $item));
        }

        $this->items->forAll(function ($key, &$item) {
            $item->setCurrent(false);

            return true;
        });

        $item->setCurrent();
        $this->items->add($item);
    }
1170179
protected function setBreadcrumbEditCountry()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/settings/country'),
            'text' => $this->text('Countries')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
846209
protected function set_items() {
		$post_type = $this->get_post_type();
		if ( ! $post_type || 'post' === $post_type ) {
			return;
		}

		$this->set( $this->get_the_archive_title() );
	}
568834
protected function set_items() {
		$year = get_query_var( 'year' );
		if ( $year ) {
			$month = get_query_var( 'monthnum' );
		} else {
			$ymd   = get_query_var( 'm' );
			$year  = substr( $ymd, 0, 4 );
			$month = substr( $ymd, 4, 2 );
		}

		$this->set( $this->year( $year ), get_year_link( $year ) );
		$this->set( $this->month( $month ), get_month_link( $year, $month ) );
		$this->set( $this->get_the_archive_title() );
	}