Check provided label

@param string|ElementInterface $label

@return ElementInterface|Label
496154
protected function checkLabel($label)
    {
        if ($label instanceof ElementInterface) {
            return $label;
        }

        return $this->createLabel($this->translate($label));
    }
131465
public function withLabels(array $labels): Validator
    {
        $translator = $this->translator->withLabels($labels);

        return new Validator($this->rules, $this->parser, $translator);
    }
485272
public function setLabel($label) {
        if (!is_string($label)) throw new IllegalTypeException('Illegal type of parameter $label: '.gettype($label));
        if (!strlen($label))    throw new InvalidArgumentException('Invalid argument $label: '.$label);

        $this->label = $label;
        return $this;
    }
729289
public static function hasCommand(String $label) : Bool
	{
		return (isset(Command::$commands[$label])) ? true : false;
	}
487986
public function addLabel($label)
    {
        if (null !== $label) {
            $l = (string) $label;
            if (!$this->hasLabel($l)) {
                $this->labels->add($l);

                return true;
            }
        }

        return false;
    }
1297487
public function addLabel(Label $label)
    {
        if (!$this->labels->contains($label)) {
            $this->labels->add($label);
            $label->setInteractionMatching($this);
        }
    }
1281416
public function setLabel(LabelElement $label)
    {

        $this->label = $label;

        if(($for = $this->getAttribute('id'))) {
            $label->setAttribute('for', $for);
        }

        return $this;

    }
1198748
protected function getLabelElement($name, Label $label)
    {
        $labelStub = $this->getStubContent('form-label-field.blade', $this->template);

        $this->replaceFieldName($labelStub, $name)
            ->replaceFieldTitle($labelStub, $this->getTitle($label));

        return $labelStub;
    }
29362
function has($label)
    {
        $r = $this->getIterator()->find( array('label' => strtolower($label)) );
        foreach ($r as $v)
            return true;

        return false;
    }
488327
protected function getValidationLabelsForElements(array $labels = [])
    {
        $this->getElements()->onlyActive()->each(function ($element) use (&$labels) {
            $element = $this->getElementContainer($element);

            if ($element instanceof Validable) {
                $labels += $element->getValidationLabels();
            }
        });

        return $labels;
    }
236896
public function setLabel($label, $domain = null)
    {
        $this->label = $label;
        $this->setDomain($domain);

        return $this;
    }
1083398
public function dropIfExists($label)
    {
        $blueprint = $this->createBlueprint($label);

        $blueprint->dropIfExists();

        return $this->build($blueprint);
    }
99231
public function isCheckedOption( $label )
    {
        trigger_error(
            "isCheckedOption is deprecated since v6.3.0, use PlatformUI Context isCheckedOption instead",
            E_USER_DEPRECATED
        );
        $isChecked = $this->getCheckboxChecked( $label );
        Assertion::assertTrue( $isChecked, "Checkbox $label is not checked" );
    }
599905
public function findColumn($label)
    {
        $column = false;
        foreach ($this->getColumns() as $col) {
            if ($col->getLabel() == $label) {
                $column = $col;
                break;
            }
        }

        return $column;
    }
925646
public function checkbox($field, $label) {
        $checkbox = new Checkbox($this->_entity, $field, $label);
        array_push($this->_elements, $checkbox);

        return $checkbox;
    }
1017582
public function isNotCheckedOption( $label )
    {
        trigger_error(
            "isNotCheckedOption is deprecated since v6.3.0, use PlatformUI Context isNotCheckedOption instead",
            E_USER_DEPRECATED
        );
        $isChecked = $this->getCheckboxChecked( $label );
        Assertion::assertFalse( $isChecked, "Checkbox $label is checked" );
    }
803105
public function mark($label)
	{
		$this->marks[] = new Mark($label, $this->ended(), $this->now(), memory_get_usage(true));

		return $this;
	}