Returns a template with microdata for the home page

@param string $label string name home label
@param array|string $url string url link home page
@return array
433800
public static function getHome($label, $url)
    {
        $home = [
            'label'     => $label,
            'url'       => $url,
            'template'  => self::getTemplate($label, $url, 1)
        ];

        return $home;
    }
885287
public function renderItem($label, $options = array())
    {
        if ($this->tagName === 'nav') {
            $url         = ArrayHelper::removeValue($options, 'href', '#');
            $htmlOptions = ArrayHelper::removeValue($options, 'options', array());
            echo \CHtml::openTag('li', $htmlOptions);
            echo \CHtml::link($label, $url);
            echo \CHtml::closeTag('li');
        } else {
            $htmlOptions = ArrayHelper::removeValue($options, 'options', array());
            echo \CHtml::tag('a', array_merge($htmlOptions, $options), $label);
        }
    }
1258186
public function getSingleNodeByLabel($label)
    {
        foreach ($this->nodes as $node) {
            if ($node->hasLabel($label)) {
                return $node;
            }
        }

        return;
    }
1185620
public function label($label)
    {
        if ($label === false) {
            $this->parts['{label}'] = '';
        } else {
            $this->parts['{label}'] = $label;
        }
        
        return $this;
    }
1355343
public static function prepareNew($label = null)
    {
        $pageVersion = new static;
        $pageVersion->version_id = 1;
        $pageVersion->label = $label;
        $pageVersion->preview_key = base_convert((rand(10, 99) . microtime(true)), 10, 36);
        return $pageVersion;
    }
662262
public function setLabel( $label ) {
		if ( $this->useInputTag ) {
			// Discard non-plaintext labels
			if ( !is_string( $label ) ) {
				$label = '';
			}

			$this->input->setValue( $label );
		}

		return $this->setLabelElementLabel( $label );
	}
828049
public function listing($key, $label)
    {
        $this->throwIfContextInvalid();

        $this->reloadQueryAdapter();
        $results = $this->activeQuery->listing($key, $label);

        $this->resetCurrentQuery();

        return $results;
    }
261129
public function renderSortingLink(\Twig_Environment $twig, $property, $label = null, $order = 'asc', array $options = [])
    {
        if (null === $label) {
            $label = $property;
        }

        if (false === $this->parameters->get('sortable')) {
            return $label;
        }

        if ('asc' !== $order && 'desc' !== $order) {
            $order = 'asc';
        }

        $options = $this->getOptions($options, $this->sortingTemplate);
        $sorting = $this->request->query->get($this->getParameterName('sorting'), $this->parameters->get($this->getParameterName('sorting'), ['id' => 'asc']));
        $currentOrder = null;

        if (isset($sorting[$property])) {
            $currentOrder = $sorting[$property];
            $order = 'asc' === $sorting[$property] ? 'desc' : 'asc';
        }

        $url = $this->router->generate(
            $this->getRouteName($options['route']),
            $this->getRouteParams(
                [$this->getParameterName('sorting') => [$property => $order]],
                $options['route_params']
            )
        );

        return $twig->render($options['template'], [
            'url' => $url,
            'label' => $label,
            'icon' => $property == key($sorting),
            'currentOrder' => $currentOrder,
        ]);
    }
396078
protected function createPageLink($label, $page, $disabled, $active)
    {
        return array(
            'label' => $label,
            'url' => $this->createPageUrl($page),
            'disabled' => $disabled,
            'active' => $active,
        );
    }
938521
public function createBackup($label, $components)
    {
        if ($this->connector->getURL() === null) {
            return 'Cannot find site URL from configuration.';
        }
        $url = $this->connector->getURL().self::VERSION.$this->connector->getSiteID().'/backup';
        $params = [
            'label' => $label,
            'components' => $components,
        ];

        $response = $this->connector->connecting($url, $params, 'POST');

        // @codingStandardsIgnoreStart
        if (isset($response->task_id)) {
            return $response->task_id;
            // @codingStandardsIgnoreEnd
        }

        return $response;
    }
394223
public function addCalendarPage($label)
    {
        $page = $this->addPage($label, 'pr.calendar', 'calendar');
        $page->addAutofilterAction();
        $page->addExportAction();
        $page->addImportAction();
        $page->addAction(null, 'pr.calendar.simple-api', 'simple-api');

        return $page;
    }
1051707
public function getLabel(\core_kernel_classes_Resource $delivery, $label = '')
    {
        $user = \common_session_SessionManager::getSession()->getUser();
        $customLabelRoles = $this->getOption(self::PROPERTY_CUSTOM_LABEL);
        if (array_intersect($customLabelRoles, $user->getRoles())) {
            $property = $this->getProperty(self::PROPERTY_CUSTOM_LABEL);
            if ((string)$delivery->getOnePropertyValue($property)) {
                $label = $delivery->getOnePropertyValue($property);
            }
        }
        return (string) $label;
    }
1189106
protected function _prepareParamLabel($label = null, $length = 0) {
		$truncateOpt = [
			'ellipsis' => '...',
			'exact' => false,
			'html' => false
		];
		if (empty($label) || ($length <= 0)) {
			return $label;
		}

		$label = CakeText::truncate($label, $length, $truncateOpt);

		return $label;
	}
403007
protected function renderButton($label, $icon, $url)
	{
		$button = $this->button;
		$button['icon'] = $icon;
		$button['url'] = $url;
		$button['label'] = $label;
		$button['class'] = 'booster.widgets.TbButton';
		$widget = Yii::createComponent($button);
		$widget->init();
		$widget->run();
	}
195803
public function createLink($label, $href = null)
    {
        $link = new Link($label, $href);

        if ( ! $this->links instanceof ArrayIterator) {
            $this->links = new ArrayIterator();
        }

        $this->links->push($link);
    }
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);
    }
1095248
private function formatLabel($label, $id = NULL, $attrs = array())
    {
        if($id)
            $attrs['for'] = $id;
        $ret = self::tag('label', $label, NULL, NULL, $attrs);
        return $ret;
    }