Returns the label of the asignment, which will often correspond
to the label of the delivery

@return string
549154
public function getLabel()
    {
        /** @var DeliveryFieldsService $deliveryFieldsService */
        $deliveryFieldsService = ServiceManager::getServiceManager()->get(DeliveryFieldsService::SERVICE_ID);
        $delivery = $this->getResource($this->getDeliveryId());
        $label = $deliveryFieldsService->getLabel(
            $delivery,
            $this->label
        );
        return $label;
    }
715125
public function getStatusLabelAttribute()
    {
        $labels = [
            Self::STATUS_RESERVED  => 'reserved',
            Self::STATUS_CONFIRMED => 'confirmed',
            Self::STATUS_CANCELED  => 'canceled',
            Self::STATUS_SERVED    => 'served',
            ];

        return array_key_exists($this->status, $labels)
            ? $labels[$this->status]
            : '';
    }
822352
function getLabel()
    {
        if ($this->filtername)
            return $this->filtername;

        $className = explode('\\', get_class($this));
        $className = $className[count($className)-1];

        return $className.'.*';
    }
1334839
public function label() {
		$output = null;
		if ( ! empty( $this->struct['label'] ) ) {
			$output .= '<div class="uix-' . esc_attr( $this->type ) . '-heading"><h3 class="uix-' . esc_attr( $this->type ) . '-title">' . esc_html( $this->struct['label'] ) . '</h3></div>';
		}

		return $output;
	}
236600
protected function __getLabelMetaString()
    {
        $strOutput = "";

        if (is_array($this->__labelmeta)) {
            foreach ($this->__labelmeta as $key => $value) {
                if (! in_array($key, $this->__reservedmeta)) {
                    $strOutput .= " {$key}=\"{$value}\"";
                }
            }
        }

        return $strOutput;
    }
1176086
protected function getLabel()
	{
		if ($this->label !== false && !in_array($this->type, array('checkbox', 'radio')) && $this->hasModel())
			return $this->form->labelEx($this->model, $this->attribute, $this->labelOptions);
		else if ($this->label !== null)
			return $this->label;
		else
			return '';
	}
221411
protected function getLabel()
	{
		if (isset($this->labelOptions['class']))
			$this->labelOptions['class'] .= ' control-label';
		else
			$this->labelOptions['class'] = 'control-label';

		return parent::getLabel();
	}
1051707
public function getLabel(\core_kernel_classes_Resource $delivery, $label = '')
    {
        $user = \common_session_SessionManager::getSession()->getUser();
        $customLabelRoles = $this->getOption(self::PROPERTY_CUSTOM_LABEL);
        if (array_intersect($customLabelRoles, $user->getRoles())) {
            $property = $this->getProperty(self::PROPERTY_CUSTOM_LABEL);
            if ((string)$delivery->getOnePropertyValue($property)) {
                $label = $delivery->getOnePropertyValue($property);
            }
        }
        return (string) $label;
    }
1072131
private function brand() : string
    {
        if ($this->brand_label !== null) {
            if ($this->brand_uri === null) {
                return '<span class="h1 navbar-brand">' . $this->brand_label . '</span>';
            } else {
                return '<a class="navbar-brand" href="' .
                    $this->brand_uri . '">' . $this->brand_label . '</a>';
            }
        } return '';
    }
472691
public function getAssignmentAttribute()
    {
        if (! $this->exists) {
            return static::ALL_PAGES;
        }

        $count = $this->menuPivot()->count();
        if ($count === 0) {
            return static::NO_PAGES;
        } elseif ($count > 1) {
            return static::SELECTED_PAGES;
        } elseif ($count === 1) {
            $pivot = $this->menuPivot()->first();
            if ($pivot->menu_id > 0) {
                return static::SELECTED_PAGES;
            }
        }

        return static::ALL_PAGES;
    }
566106
public function getLabel()
    {
        $label = false;
        if (isset($this->options['label_callback'])
            && is_callable($this->options['label_callback'])) {
            $label = call_user_func($this->options['label_callback']);
        }

        if (!$label) {
            $label = isset($this->options['label']) ? $this->options['label'] : null;
        }

        return $label;
    }
248892
public function hierarchicalLabel()
    {
        return str_repeat('— ', ($this->hierarchyLevel() - 1)).$this->title();
    }
755393
public function getMessageTemplate()
    {
        if ($this->messageTemplate) {
            return $this->messageTemplate;
        }
        if (isset($this->options['label'])) {
            return constant(get_class($this) . '::LABELED_MESSAGE');
        }

        return constant(get_class($this) . '::MESSAGE');
    }
1130110
public function getShipmentStateBadge($stateOrShipment)
    {
        $state = $stateOrShipment instanceof ShipmentInterface ? $stateOrShipment->getState() : $stateOrShipment;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            ShipmentStates::getTheme($state),
            $this->getShipmentStateLabel($state)
        );
    }
1372408
public function get_label() {
		if ( $this->label_has_placeholder() ) {
			return sprintf( $this->label, $this->get_element_markup() );
		} else {
			return $this->label;
		}
	}
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)));
    }
1142380
public function getActionLabelAttribute()
    {
        $map = [
            'created' => 'success',
            'updated' => 'warning',
            'deleted' => 'danger',
            'published' => 'info',
            'unpublished' => 'default',
        ];

        return sprintf('<a href="%s" class="label label-%s">%s</a>',
            $this->filterUrl(['action' => $this->action]),
            isset($map[$this->action]) ? $map[$this->action] : 'info',
            __("decoy::changes.actions.$this->action"));
    }