List item with content
@param string $label
@param string $content
@param string $url
@param bool $active
@return $this
501561
public function addContentItem($label, $content, $url = null, $status = null, $active = false, array $cssClasses = [], array $attrs = [])
    {
        Checkers::checkUrl($url);
        $status === null || Checkers::checkStatus($status, null, true);
        $url    === null || $this->ulList = false;
        $this->list[] = [(string) $label, $url, (string) $content, $status, (bool) $active, $cssClasses, $attrs];
        $this->listCount++;
        return $this;
    }
936358
public function setListActiveElement(string $element): Breadcrumbs
    {
        $this->validateElement('allowedListActiveElement', $element);

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

        return $this;
    }
178620
public function setLabel( $label ) {
		$this->labelValue = (string)$label !== '' ? $label : null;

		$this->label->clearContent();
		if ( $this->labelValue !== null ) {
			if ( is_string( $this->labelValue ) && trim( $this->labelValue ) === '' ) {
				$this->label->appendContent( new HtmlSnippet( '&nbsp;' ) );
			} else {
				$this->label->appendContent( $label );
			}
		}

		$visibleLabel = $this->labelValue !== null && !$this->invisibleLabel;
		$this->toggleClasses( [ 'oo-ui-labelElement' ], $visibleLabel );

		return $this;
	}
1360785
public function actionTag($tag)
    {
        Url::remember('', 'actions-redirect');
        if (($model = Tag::findOne(['name' => $tag])) != null) {
            $query = Article::find()->anyTagValues($tag, 'name')->with('user');
            $query->andWhere(['>', Article::tableName() . '.status', 0]);
            $dataProvider = new ActiveDataProvider([
                'query' => $query,
            ]);
            return $this->render('tag', ['model' => $model, 'dataProvider' => $dataProvider]);
        } else {
            throw new NotFoundHttpException (Yii::t('yii', 'The requested page does not exist.'));
        }
    }
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);
    }
1077945
public static function add($label, $urlCode = null, $addedArgs = array())
  {
    self::$items[] = new BreadcrumbItem($label, $urlCode, $addedArgs);
  }
691585
public function withText(string $name, string $label)
    {
        $this->contentGroup->textAreas[$name] = ['name' => $name, 'label' => $label, 'order' => $this->order++];

        return $this;
    }
1017718
protected function createChild(Request $request, $label, $route, $position = 200, callable $activeTest = null, $routeParameters = [])
    {
        if ($activeTest == null) {
            $activeTest = function (Request $request, $route) {
                return $request->get('_route') === $route;
            };
        }

        $child = $this->factory->createItem($label, [
            'route' => $route,
            'routeParameters' => $routeParameters,
            'attributes' => [
                'class' => $activeTest($request, $route) ? 'active' : ''
            ]
        ])->setExtra('position', $position);

        return $child;
    }
144019
public function listing($key, $label)
    {
        $data = array();
        foreach ($this->fetch() as $entity) {
            $data[$entity->{$key}] = $entity->{$label};
        }
        return $data;
    }
933243
public function addParticipatePage($label)
    {
        $participate = $this->addContainer($label);
        $subscr = $participate->addPage($this->_('Subscribe'), 'pr.participate.subscribe', 'participate', 'subscribe');
        $subscr->addPage(null, 'pr.participate.subscribe', 'participate', 'subscribe-thanks');
        $unsub = $participate->addPage($this->_('Unsubscribe'), 'pr.participate.unsubscribe', 'participate', 'unsubscribe');
        $unsub->addPage(null, 'pr.participate.unsubscribe', 'participate', 'unsubscribe-thanks');

        return $participate;
    }
569617
public function setLabel(Label $label)
    {
        $label->checkId();
        $label->setScriptEvents(true);
        $this->label = $label;
        return $this;
    }
236896
public function setLabel($label, $domain = null)
    {
        $this->label = $label;
        $this->setDomain($domain);

        return $this;
    }
1067445
public function setActionCustom(
        string $url = null,
        string $label = '',
        string $class = 'btn btn-primary btn-outline-primary btn-sm flat',
        string $icon = 'fa fa-paw'
    ): ButtonInterface {
        if (!$url) {
            $url = '#';
        }
        $this->setAction(self::TYPE_ACTION_CUSTOM)
            ->setUrl($url)
            ->setLabel($label)
            ->setClass($class)
            ->setIcon($icon);

        return $this;
    }
1317105
public function addMenu(string $label, Addon\DropDownMenu $menu, bool $active = false, bool $disabled = false)
    {
        $this->items[] = [
            'label'    => $label, 
            'menu'     => $menu, 
            'active'   => $active, 
            'disabled' => $disabled
        ];
        return $this;
    }
697344
public function addContent(\Coral\ContentBundle\Entity\Content $contents)
    {
        $this->contents[] = $contents;

        return $this;
    }
448243
public function link($text, $href, $label=false, array $attr=[]){
		$field = $this->factory('link', false, $label, array_merge(array('text' => $text, 'href' => $href), $attr));
		return $this->addField($field);
	}
930625
public function append($title, \Closure $content, $active = false)
    {
        $fields = $this->collectFields($content);

        $id = 'form-'.($this->tabs->count() + 1);

        $this->tabs->push(compact('id', 'title', 'fields', 'active'));

        return $this;
    }