Sets field caption which will be used by forms, grids and other view
elements as a label. The caption will be localized through $app->_().

@param string $t new value

@return string|$this current value if $t=UNDEFINED
495827
public function caption($t = UNDEFINED)
    {
        if ($t === UNDEFINED && !$this->caption) {
            return ucwords(strtr(
                preg_replace('/_id$/', '', $this->short_name),
                '_',
                ' '
            ));
        }

        return $this->setterGetter('caption', $t);
    }
1361188
public function setCaption($caption): Table
    {
        $this->caption = $caption;
        $this->options['caption']['value'] = $caption;

        return $this;
    }
554377
public function label( string $name ) {
		return $this->$name ? get_field_object( $name, $this->term )['label'] : FALSE;
	}
670923
public function setLabel($label)
    {
        if (!empty($label) && is_string($label) && ctype_print($label)) {
            $this->label = trim($label);
        }

        return $this;
    }
498112
public function title(string $title)
    {
        $name = config('app.name');

        if (empty($this->subject) && ! is_null($name)) {
            $this->subject(sprintf('[%s] %s', $name, $title));
        }

        $this->title = $title;

        return $this;
    }
184527
public function label( string $name ) {
		return $this->$name ? get_field_object( $name, $this->_key )['label'] : FALSE;
	}
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;
	}
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;
    }
613350
public function setLabel($label) : self
    {
        if (!$label instanceof Label && !$label instanceof HtmlElement) {
            $label = new Label($label);
        }

        $this->label = $label;

        if (!$this->field->getId() && $this->label instanceof Label) {
            $this->label->setFor($this->field->generateId()->getId());
        }

        if (!$this->getPlaceholder() && $this->label->getContent()) {
            $this->setPlaceholder($this->label->getContent());
        }

        return $this;
    }
1062504
public function setLabel($var)
    {
        GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto_Label::class);
        $this->label = $var;
        $this->has_label = true;

        return $this;
    }
534246
public function setLabelPosition($labelPosition)
    {
        $labelPosition = strtolower($labelPosition);
        if (!in_array($labelPosition, array(self::LABEL_APPEND, self::LABEL_PREPEND))) {
            throw new Exception\InvalidArgumentException(sprintf(
                '%s expects either %s::LABEL_APPEND or %s::LABEL_PREPEND; received "%s"',
                __METHOD__,
                __CLASS__,
                __CLASS__,
                (string) $labelPosition
            ));
        }
        $this->labelPosition = $labelPosition;

        return $this;
    }
529957
public function getControl($caption = null)
	{
		$el = parent::getControl('');

		$el->type = 'submit';
		$el->class = $this->getClass();

		if ($this->getIcon()) {
			$el->addHtml(Html::el('span')->class(DataGrid::$icon_prefix . $this->getIcon()));

			if (strlen($this->getText())) {
				$el->addHtml('&nbsp;');
			}
		}

		$el->addText($this->grid->getTranslator()->translate($this->getText()));

		return $el;
	}
857759
public function label($label)
    {
        if (is_array($label)) {
            $this->label = array_merge($this->label, $label);
        } else {
            $this->label[$this->dateBindRule[count($this->dateBindRule) - 1]['field'][0]] = $label;
        }

        return $this;
    }
241652
public function setTitle(string $title)
    {
        /** @var  \Illuminate\Translation\Translator  $translator */
        $translator  = trans();
        $this->title = $translator->has($title)
            ? $translator->get($title)
            : $title;

        return $this;
    }
1010895
public function getImageCaptionText()
    {
        switch ($this->ImageCaption) {
            case self::IMAGE_CAPTION_MEDIA:
                return $this->Description;
            case self::IMAGE_CAPTION_COMPONENT:
                return $this->dbObject('Caption')->Summary();
        }
    }
533420
public function setLabel($label)
    {
        if (in_array(
            $label,
            $this->validLabels
        )) {
            $this->label = $label;
        }

        return $this;
    }
729159
public void setCaption(String v) {
    if (DataTable_Type.featOkTst && ((DataTable_Type)jcasType).casFeat_caption == null)
      jcasType.jcas.throwFeatMissing("caption", "ch.epfl.bbp.uima.types.DataTable");
    jcasType.ll_cas.ll_setStringValue(addr, ((DataTable_Type)jcasType).casFeatCode_caption, v);}