@param GmailLabelInterface $label

@return bool
199162
public function hasLabel(GmailLabelInterface $label): bool
    {
        if ($this->labels->contains($label)) {
            return true;
        }

        return false;
    }
1122151
public function deleteLabel(\stdClass $label)
    {
        // Prevents to delete a label which has children.
        if ($this->hasChildren($label)) {
            throw new \LogicException("Can't delete a label which has children.");
        }
        return taxonomy_term_delete($label->tid);
    }
1083398
public function dropIfExists($label)
    {
        $blueprint = $this->createBlueprint($label);

        $blueprint->dropIfExists();

        return $this->build($blueprint);
    }
959847
protected function handleGetMutatorField($method, $label)
    {
        if (is_null($this->model)) {
            return false;
        }

        if ($this->model->hasGetMutator($method)) {
            return $this->addField($method, $label);
        }

        return false;
    }
1258186
public function getSingleNodeByLabel($label)
    {
        foreach ($this->nodes as $node) {
            if ($node->hasLabel($label)) {
                return $node;
            }
        }

        return;
    }
1040613
public static function mark($label = '')
    {
        $_this = self::i();
        if (!$_this->isDebug()) {
            return false;
        }

        $current = $_this->_microtime() - $_this->_start;
        $memory  = self::_getMemory();
        $trace   = debug_backtrace();

        $markInfo = array(
            'time'       => $current,
            'timeDiff'   => $current - $_this->_prevTime,
            'memory'     => $memory,
            'memoryDiff' => $memory - $_this->_prevMemory,
            'trace'      => $_this->_getSourcePath($trace, true),
            'label'      => $label,
        );

        $_this->_bufferInfo[] = $markInfo;

        if ((int)self::$_config['profiler']['render'] & self::PROFILER_RENDER_FILE) {
            $_this->log(self::_profilerFormatMark($markInfo), 'mark #');
        }

        $_this->_prevTime   = $current;
        $_this->_prevMemory = $memory;

        return $_this;
    }
114798
public function getButtonLabel($label)
    {
        if ($label instanceof Closure) {
            $label = call_user_func($label, $this);
        } else {
            $label = Yii::t('hipanel', $label, ['count' => count($this->getSpoiledItems())]);
        }

        return $label;
    }
1297487
public function addLabel(Label $label)
    {
        if (!$this->labels->contains($label)) {
            $this->labels->add($label);
            $label->setInteractionMatching($this);
        }
    }
690262
protected function getLabelTitle($label, $name)
    {
        if ($label === false) {
            return null;
        }

        if (is_null($label) && Lang::has("forms.{$name}")) {
            return Lang::get("forms.{$name}");
        }

        return $label ?: str_replace('_', ' ', Str::title($name));
    }
899317
public function setLabel($label) : self
    {
        $index = $this->getIndex($this->label);

        if (!$label instanceof Label && !$label instanceof HtmlElement) {
            $label = new Label($label);
        }

        $this->label = $label;

        if (is_null($index)) {
            array_unshift($this->elements, $label);
        } else {
            $this->elements[$index] = $label;
        }

        return $this;
    }
901848
protected function handleGetMutatorColumn($method, $label)
    {
        if ($this->model()->eloquent()->hasGetMutator($method)) {
            return $this->addColumn($method, $label);
        }

        return false;
    }
827902
public function collection($label)
    {
        if (is_string($label) === false) {
            throw new \InvalidArgumentException(
                'Collection icon label must be a string.'
            );
        }

        if (isset($this->collection[$label]) === false) {
            throw new CollectionIconException(
                'Collection icon "' . $label . '" does not exist.'
            );
        }

        return $this->collection[$label];
    }
1267338
protected function getOrCreateTag($label)
    {
        if (isset($this->tagFirstLevelCache[$label])) {
            return $this->tagFirstLevelCache[$label];
        }

        $tag = $this->tagRepository->findOneByLabel($label);

        if ($tag === null) {
            $tag = new Tag($label);
            $this->tagRepository->add($tag);
        }

        $this->tagFirstLevelCache[$label] = $tag;

        return $tag;
    }
1189046
public function getByLabel($label)
    {
        return isset($this->items[$label]) ? $this->items[$label] : null;
    }
247473
public function deleteLabel(int $labelId): bool
    {
        if ( ! $this->validateId($labelId)) {
            return false;
        }

        $result = $this->delete('labels/' . $labelId);

        return 204 === $result->getStatusCode();
    }
609152
private function _setLabel($label) {
		if ($label && is_array($label)) {
			$this->label = $label;
			return true;
		}

		$singular = $this->singular;
		$plural = $this->plural ?: $singular . $this->plural_end;

		$this->label = array(
			'name' => ucfirst($plural),
			'singular' => ucfirst($singular),
			'menu_name' => ucfirst($singular),
			'all_items' => __('All', 'wba_taxonomy') . ' ' . $plural,
			'parent_item' => __('Parent', 'wba_taxonomy') . ' ' . $singular,
			'parent_item_colon' => __('Parent', 'wba_taxonomy') . ' ' . $singular,
			'new_item_name' => __('New', 'wba_taxonomy') . ' ' . $singular,
			'add_new_item' => __('Add New', 'wba_taxonomy') . ' ' . $singular,
			'edit_item' => __('Edit', 'wba_taxonomy') . ' ' . $singular,
			'update_item' => __('Update', 'wba_taxonomy') . ' ' . $singular,
			'view_item' => __('View', 'wba_taxonomy') . ' ' . $singular,
			'separate_items_with_commas' => __('Separate', 'wba_taxonomy') . strtolower($singular) . ' ' . __('with commas', 'wba_taxonomy'),
			'add_or_remove_items' => __('Add or remove', 'wba_taxonomy') . strtolower($singular),
			'choose_from_most_used' => __('Choose from the most used', 'wba_taxonomy'),
			'popular_items' => ucfirst($plural),
			'search_items' => __('Search', 'wba_taxonomy') . ' ' . $singular,
			'not_found' => __('Not Found', 'wba_taxonomy'),
			'no_terms' => __('No', 'wba_taxonomy') . ' ' . $singular,
			'items_list' => ucfirst($singular) . ' ' . __('list', 'wba_taxonomy'),
			'items_list_navigation' => ucfirst($singular) . ' ' . __('list navigation', 'wba_taxonomy'),
		);

		return true;
	}
446857
public function startWith($label = '')
    {
        $label = $label ?: 'Start with';

        $condition = [$this->column, 'like', "{$this->value}%"];

        return $this->joinGroup($label, $condition);
    }