Returns the label of the field.

@return string
549541
protected function getLabel(): string
    {
        if ($this->label != null) {
            return $this->label;
        }

        if (isset($this->model->attributeLabels()[$this->name])) {
            return $this->model->attributeLabels()[$this->name];
        }

        return ucfirst($this->name);
    }
486464
public function getLabel()
    {
        if (!$this->entryFormatter) {
            $this->entryFormatter = Application::getFacadeApplication()->make(EntryFormatterInterface::class);
        }

        if ($mask = $this->getEntity()->getLabelMask()) {
            $name = $this->entryFormatter->format($mask, $this);
        }

        if (!$name) {
            $name = $this->entryFormatter->getLabel($this);
        }

        return $name;
    }
1317613
public function label( string $name ) {
		return $this->$name ? get_field_object( $name, $this->ID )['label'] : FALSE;
	}
28130
public function getDefaultLabel()
    {
        $oDefault = $this->getDefault();
        return empty($oDefault->label) ? false : $oDefault->label;
    }
807481
public function RenderLabel () {
		if ($this->renderMode == \MvcCore\Ext\Forms\IForm::FIELD_RENDER_MODE_NO_LABEL) 
			return '';
		$attrsStr = $this->renderAttrsWithFieldVars(
			['multiple'], $this->groupLabelAttrs, $this->groupLabelCssClasses, FALSE
		);
		$viewClass = $this->form->GetViewClass();
		/** @var $templates \stdClass */
		$templates = & static::$templates;
		return $viewClass::Format($templates->label, [
			'id'		=> $this->id,
			'label'		=> $this->label,
			'attrs'		=> $attrsStr ? " $attrsStr" : '',
		]);
	}
580141
public function label()
    {
        if ($this->label_translated) {
            return cms_trans($this->label_translated);
        }

        if ($this->label) {
            return $this->label;
        }

        return ucfirst(str_replace('_', ' ', snake_case($this->source)));
    }
755576
public function getFieldLabels()
    {
        $output = array(
            'gap_id_organization' => $this->_('Organization'),
            'gap_source'          => $this->_('Source of appointment'),
            'gap_id_attended_by'  => $this->_('With'),
            'gap_id_referred_by'  => $this->_('Referrer'),
            'gap_id_activity'     => $this->_('Activity'),
            'gap_id_procedure'    => $this->_('Procedure'),
            'gap_id_location'     => $this->_('Location'),
            'gap_subject'         => $this->_('Subject'),
        );

        asort($output);

        return $output;
    }
514076
public function getLabels() {
        $labels = array();
        foreach ($this->cols as $col) {
            $labels[] = $col->getLabel();
        }
        return $labels;
    }
1180226
public function getLabelText($field_key)
    {
        $field = $this->getField($field_key);
        if (!is_array($field)) {
            return null;
        }

        return (array_key_exists('label', $field))
            ? $field['label']
            : Str::human(str_replace('-', ' ', preg_replace('/_id$/i', '', $field_key)));
    }
1011523
public function getLabel()
    {
        $translationHelper = new TranslationHelper();
        return isset($this->configuration['label']) ? $translationHelper->translate($this->configuration['label']) : '';
    }
900498
public function getLabel() {
		
		// no label, get it by the control’s name
		if (!$this->label) {
			
			$label = ucwords(preg_replace(array('/(?<=[^A-Z])([A-Z])/', '/(?<=[^0-9])([0-9])/'), ' $0', $this->name));
		
		// check if it’s a translation key, uppercase over 3 chars
		} else if (strtoupper($this->label) == $this->label and strlen($this->label) > 3) {

			$label = Translator::do($this->label);
			
		// simple label
		} else {
			
			$label = $this->label;
			
		}
		
		return $label;
		
	}
927365
public function getFieldLabel($fieldName)
    {
        $result = $this->getField($fieldName, 'label_'.$this->locale, $this->getField($fieldName, 'label'));

        if ($result === null && array_key_exists($fieldName, $this->standardFieldLabels)) {
            $result = $this->standardFieldLabels[$fieldName];
        }

        if ($result === null) {
            $result = $fieldName;
        }

        return $result;
    }
912443
public function label() {
		$output = null;
		if ( ! empty( $this->struct['label'] ) ) {
			$output .= '<span class="uix-text">' . esc_html( $this->struct['label'] ) . '</span>';
		}

		return $output;
	}
250971
public function generateLabel()
    {
        if ($this->strLabel === '') {
            return '';
        }

        return sprintf(
            '<span %s>%s%s</span>',
            ('' !== $this->strClass ? ' class="' . $this->strClass . '"' : ''),
            $this->strLabel,
            ($this->required ? '<span class="mandatory">*</span>' : '')
        );
    }
103064
public function label()
    {
        $list = self::listStatus();

        return isset($list[$this->status])
            ? $list[$this->status]
            : $this->status;
    }
1372408
public function get_label() {
		if ( $this->label_has_placeholder() ) {
			return sprintf( $this->label, $this->get_element_markup() );
		} else {
			return $this->label;
		}
	}
690103
def get_label(self):
        
        if self.label is None:
            self.label = self.get_field('label')
        return self.label