Add breadcrumb to array.

@param  mixed  $label
@param  string $url
@return Breadcrumb
323379
public function add($label, $url='')
    {
        if (is_array($label)) {
            if (count($label) > 0) foreach ($label as $crumb) {
                $defaults = [
                    'label' => '',
                    'url'   => ''
                ];
                $crumb = array_merge($defaults, $crumb);
                $this->add($crumb['label'], $crumb['url']);
            }
        } else {
            $label = trim(strip_tags($label, '<i><b><strong>'));
            if (! preg_match('|^http(s)?|', $url)) {
                $url = URL::to($url);
            }
            $this->crumbs[] = array('label' => $label, 'url' => $url);
        }

        return $this;
    }
701783
public function addCurrentRoute($label = null)
    {
        $base = Base::instance();
        $args = ($base['PARAMS'] ?: []) + ($base['GET'] ?: []);
        unset($args[0]);

        return $this->add($base['ALIAS'], $args, $label);
    }
1173752
public function addLink(
            string $label, 
            string $url, 
            bool $active       = false, 
            bool $disabled     = false, 
            string $icon       = null, 
            string $iconColor  = null, 
            string $badge      = null, 
            string $badgeColor = null)
    {
        Checkers::checkUrl($url);
        $this->items[] = [
            'label'    => $label, 
            'url'      => $url, 
            'active'   => $active, 
            'disabled' => $disabled,
            'icon'     => $icon,
            'icolor'   => $iconColor,
            'badge'    => $badge,
            'bcolor'   => $badgeColor
        ];
        return $this;
    }
857759
public function label($label)
    {
        if (is_array($label)) {
            $this->label = array_merge($this->label, $label);
        } else {
            $this->label[$this->dateBindRule[count($this->dateBindRule) - 1]['field'][0]] = $label;
        }

        return $this;
    }
433800
public static function getHome($label, $url)
    {
        $home = [
            'label'     => $label,
            'url'       => $url,
            'template'  => self::getTemplate($label, $url, 1)
        ];

        return $home;
    }
553200
public function sort(array $query, $key, $label, $url = null) 
	{
		Argument::i()
			->test(2, 'string')
			->test(3, 'string')
			->test(4, 'string', 'null');
			
		$block = Sort::i($query, $key, $label);
		
		if($url) {
			$block->setUrl($url);
		}
		
		return $block;
	}
878842
public function addGroup($label)
    {
        $objGroup = new SelectGroup($label);
        $objGroup->setMeta("parent", $this, true);

        $this->__options->addObject($objGroup);

        return $objGroup;
    }
740205
public function createLink($label, $href = null, $position = self::NAVBAR_LEFT)
    {
        if ( ! is_object($label) && isset($href)) {
            $label = new Link($label, $href);
        }

        switch ($position) {
            default:
            case self::NAVBAR_LEFT:
                $node = $this->left->createList($label);
                break;

            case self::NAVBAR_RIGHT:
                $node = $this->right->createList($label);
                break;
        }

        return $node;
    }
318827
public static function closeLink($label = self::CLOSE_TEXT, $url = '#', $htmlOptions = array())
    {
        $htmlOptions['href'] = $url;
        return self::close('a', $label, $htmlOptions);
    }
1372095
public function addPlanPage($label)
    {
        $infoPage = $this->addContainer($label);

        $page = $infoPage->addPage($this->_('Track Summary'), 'pr.plan.summary', 'summary', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $page = $infoPage->addPage($this->_('Track Compliance'), 'pr.plan.compliance', 'compliance', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $page = $infoPage->addPage($this->_('Track Field Utilization'), 'pr.plan.fields', 'field-report', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $page = $infoPage->addPage($this->_('Track Field Content'), 'pr.plan.fields', 'field-overview', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $plans[] = $infoPage->addPage($this->_('By period'), 'pr.plan.overview', 'overview-plan', 'index');
        $plans[] = $infoPage->addPage($this->_('By token'), 'pr.plan.token', 'token-plan', 'index');
        $plans[] = $infoPage->addPage($this->_('By respondent'), 'pr.plan.respondent', 'respondent-plan', 'index');

        foreach ($plans as $plan) {
            $plan->addAutofilterAction();
            $plan->addAction($this->_('Bulk mail'), 'pr.token.bulkmail', 'email', array('routeReset' => false));
            $plan->addExportAction();
        }

        $page = $infoPage->addPage($this->_('Respondent status'), 'pr.plan.consent', 'consent-plan', 'index');
        $page->addShowAction();
        $page->addExportAction();

        return $infoPage;
    }
266580
public function addBreadcrumbLink(string $name, string $link = null, array $arguments = []): Link
	{
		return $this['breadcrumb']->addLink($name, $link, $arguments);
	}
1056207
public function addSecondaryFields(string $label, string $value): self
    {
        $this->secondaryFields[] = $this->setLabelValue($label, $value);

        $this->isValidArray($this->secondaryFields, 5);

        return $this;
    }
1268962
public function addCurrentGrandParent($label = null)
    {
        $parent = $this->menu->getCurrentParent();

        if ($parent && (! $parent->isTopLevel())) {
            $grandPa = $parent->getParent();
            if ($grandPa && (! $grandPa->isTopLevel())) {
                $this->addMenuItem($grandPa, $label);
            }
        }
        return $this;
    }
1352153
public function add($url, $title = '', $parameters = [])
    {
        // If only {$url} specified, use it as title for current page
        if (func_num_args() === 1) {
            return $this->addCurrent($url);
        }

        $url = $this->parseUrl($url, $parameters);

        $this->crumbs[] = new CrumbsItem($url, $title, $this->url, $this->config);

        return $this;
    }
239768
public function addButton($label = 'Continue')
    {
        if (!is_array($label)) {
            $label = array($label, 'icon-r' => 'right-big');
        }

        /** @type Button $button */
        $button = $this->add('Button', null, 'Button');

        return $button->set($label);
    }
533420
public function setLabel($label)
    {
        if (in_array(
            $label,
            $this->validLabels
        )) {
            $this->label = $label;
        }

        return $this;
    }
1284672
public function addItem($label, $url = null, $status = null, $active = false, array $cssClasses = [], array $attrs = [])
    {
        return $this->addContentItem($label, null, $url, $status, $active, $cssClasses, $attrs);
    }