@param string $label
@param string $value

@return \BotMan\Drivers\Facebook\Extensions\Airline\AirlineBoardingPass
519600
public function addSecondaryField(string $label, string $value): self
    {
        $this->secondaryFields[] = $this->setLabelValue($label, $value);

        return $this;
    }
1068155
private static function select_option($label, $value, array $selected) {
        $attributes = array();
        $value = (string)$value;
        if (in_array($value, $selected, true)) {
            $attributes['selected'] = 'selected';
        }
        $attributes['value'] = $value;
        return self::tag('option', $label, $attributes);
    }
1143180
protected function getKeyValueStringsFromLabels(array $labels)
    {
        return array_map(function ($label) {
            if (!$label->isPlain) {
                return sprintf("'%s' => %s", $label->value, $this->getTranslatedTitle($label));
            }

            return sprintf("'%s' => '%s'", $label->value, $label->text);
        }, $labels);
    }
710103
protected function addAttr($label, $value, &$attr)
    {
        if (!isset($attr[$label])) {
            $attr[$label] = '';
        } else {
            $attr[$label] .= ' ';
        }
        $attr[$label] .= $value;

        return $this;
    }
1331755
public function labelValue($label, $value, $verboseLvl = null, $insertNewline = true)
    {
        $this->simple('<strong>'.$label.' :</strong> '.$value, $verboseLvl, $insertNewline);
    }
76066
public function label($name, $value = null, array $options = [])
    {
        $options = $this->getLabelOptions($options);

        $escapeHtml = false;

        if (is_array($value) and isset($value['html'])) {
            $value = $value['html'];
        } elseif ($value instanceof HtmlString) {
            $value = $value->toHtml();
        } else {
            $escapeHtml = true;
        }

        return $this->form->label($name, $value, $options, $escapeHtml);
    }
147323
public function select($field, $label) {
        $select = new Select($this->_entity, $field, $label);
        array_push($this->_elements, $select);

        return $select;
    }
1340137
public function first($value, $label = null)
	{
		$this->firstValue = array(
			'label' => $label === null ? $value : $label,
			'value' => $label === null ? '' : $value
		);

		return $this;
	}
241260
public function matches($field, $label, $message = null)
    {
        $this->setRule(__FUNCTION__, function($val, $args)
                       {
                           return ((string) $args[0] == (string) $val);
                       }, $message, array($this->_getVal($field), $label));
        return $this;
    }
1373265
public function addAskPage($label)
    {
        $page = $this->addPage($label, null, 'ask');

        // Routes for token controller
        $page->addAction(null, null, 'forward');
        $page->addAction(null, null, 'return');
        $page->addAction(null, null, 'to-survey')->setModelParameters(1);
        $page->addAction(null, null, 'token');

        return $page;
    }
1137781
public static function btn($tag, $label, $htmlOptions = array())
    {
        ArrayHelper::addValue('class', 'button', $htmlOptions);

        $icon = ArrayHelper::removeValue($htmlOptions, 'icon');
        if (isset($icon))
            $label = Icon::icon($icon) . '&nbsp;' . $label;

        return \CHtml::tag($tag, $htmlOptions, $label);
    }
132621
public function removeLabel($module, $language, $label, $value)
    {
        require_once('modules/ModuleBuilder/parsers/parser.label.php');
        $delLabel = \ParserLabel::removeLabel($language, $label, $value, $module);

        return $delLabel;
    }
508674
public function label($label = null)
    {
        if (null === $label) {
            return $this->label;
        }
        $this->label = $label;

        return $this;
    }
511838
public function addChoice($choice, $label = null)
    {
        $label ?: $label = $choice;
        $this->choices[$choice] = $label;
        return $this;
    }
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;
    }
958807
public function createOption($label, $value = null, $selected = false)
    {
        $option = new Option();
        $option->textContent->push($label);

        if (isset($value)) {
            $option->attributes->addAttribute('value', $value);
        }

        if ($selected) {
            $option->selected();
        }

        $this->childNodes->push($option);

        return $this->childNodes->last();
    }
1322425
public static function init(string $value = null, string $label = null)
    {
        $instance = new static();

        $instance->option['value'] = $value;

        if ($label) $instance->option['text'] = $label;

        return $instance;
    }