Return the label for this build.

@param Xinc_Build_Interface $build

@return string
505012
public function getLabel(BuildInterface $build)
    {
        $buildNo = $build->getNumber();

        if ($buildNo == null) {
            $buildNo = $this->_firstBuild;
        }

        $buildLabel = $this->_prefix.$buildNo;
        $build->setProperty('build.label', $buildLabel);

        return $buildLabel;
    }
971391
public function getUTC(string $prefix = self::UTC): string
    {
        list($hour, $minute, $sign) = $this->getUtcParts($this->offset);
        return $prefix.$sign.$hour.':'.$minute;
    }
976713
public function label()
    {
        if (!$this->label) {
            return;
        }

        $label = new HTMLBrick('label', $this->label);
        $label->addClass('col-lg-2');
        $label->addClass('control-label');

        return $label;
    }
1295943
public static function getName($identifier)
    {
        $identifierOctet = self::makeNumeric($identifier);

        $typeName = static::getShortName($identifier);

        if (($identifierOctet & self::LONG_FORM) < self::LONG_FORM) {
            $typeName = "ASN.1 {$typeName}";
        }

        return $typeName;
    }
1310783
protected function getName($item): string
    {
        $name = $item->name();

        if ($item instanceof Command) {
            return \trim(\str_pad($name, $this->maxCmdName) . ' ' . $item->alias());
        }

        return $this->label($item);
    }
123404
public function getLabel($default = null)
		{
			$label  = $this->getTag('label');
			if( ! $label )
			{
				$label  = $default ?: $this->ref->getName();
				$label  = preg_replace('/^(.+)Controller$/', '$1', $label);
				//$label  = preg_replace('/_/', ' ', $label);
				//$label  = preg_replace('/([a-z])([A-Z0-9])/', '$1 $2', $label);
				//$label  = strtolower($label);
			}
			return $label;
		}
918319
public function setName($name, $build)
    {
        $this->_name = (string) $name;
        if (isset($this->_name) && isset($this->_value)) {
            $build->getProperties()->set($this->_name, $this->_value);
        }
    }
775075
public function getLabelWrapper($key = null, $default = null)
    {
        if (!isset($this->attributes['labelWrapper'])) {
            return $default;
        }
        if (!is_null($key) && !array_key_exists($key, $this->attributes['labelWrapper'])) {
            return $default;
        }
        if (is_null($key)) {
            return $this->attributes['labelWrapper'];
        }
        if (!is_null($key) && array_key_exists($key, $this->attributes['labelWrapper'])) {
            return $this->attributes['labelWrapper'][$key];
        }
    }
1365684
private function buildPathFromSource(string $path) :string {
    //return $this->buildContext->getPath('build') . '/' .
    return str_replace('.', '/', str_replace($this->context . ".", '', $this->viewNameFromSource($path))) .
      $this->buildExtension;
  }
908783
public function getLabel()
	{
		// Checks if the object has a label
		$label = $this->label;

		// if not guess one from the name
		if (is_null($label))
		{
			$label = $this->getName();
		}

		return $label;
	}
741026
protected function getPropertyLabel($propertyName, NodeInterface $changedNode)
    {
        $properties = $changedNode->getNodeType()->getProperties();
        if (!isset($properties[$propertyName]) ||
            !isset($properties[$propertyName]['ui']['label'])
        ) {
            return $propertyName;
        }
        return $properties[$propertyName]['ui']['label'];
    }
719699
public function getLabel(\Neos\ContentRepository\Domain\Projection\Content\NodeInterface $node)
    {
        $label = Utility::evaluateEelExpression($this->getExpression(), $this->eelEvaluator, ['node' => $node], $this->defaultContextConfiguration);
        return $label;
    }
10751
public static function getBuild(Build $build)
    {
        $project = $build->getProject();

        if (!empty($project)) {
            switch ($project->getType()) {
                case 'remote':
                    $type = 'RemoteGitBuild';
                    break;
                case 'local':
                    $type = 'LocalBuild';
                    break;
                case 'github':
                    $type = 'GithubBuild';
                    break;
                case 'bitbucket':
                    $type = 'BitbucketBuild';
                    break;
                case 'gitlab':
                    $type = 'GitlabBuild';
                    break;
                case 'hg':
                    $type = 'MercurialBuild';
                    break;
                case 'svn':
                    $type = 'SubversionBuild';
                    break;
                default:
                    return $build;
            }

            $class = '\\PHPCI\\Model\\Build\\' . $type;
            $build = new $class($build->getDataArray());
        }

        return $build;
    }
339060
public function getName($os = null)
    {
        if ($os === null) {
            if (strstr(strtoupper(php_uname()), "WIN")) $os = self::OS_WINDOWS;
            elseif (strstr(strtoupper(php_uname()), "MACOS")) $os = self::OS_MAC;
            else $os = self::OS_UNIX;
        }
        $host = $this->getHost();

        $filename = $this->getPath();
        if ($filename{0} === '/' && $os == self::OS_WINDOWS) {
            $filename = substr($filename, 1);
        }
        if ($os == self::OS_WINDOWS) {
            $filename = str_replace('/', '\\', $filename);
        }

        if ($os == self::OS_WINDOWS) {
            if ($host && $host !== 'localhost') return sprintf('\\\\%s\%s', $host, $filename);
            else return $filename;
        } else {
            return $this->buildStr();
        }
    }
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)));
    }
144114
public function getEntityLabel(EntityInterface $entity) {
    $profiles = $this->entityTypeManager->getStorage('profile')
      ->loadByProperties([
        'uid' => $entity->field_account->target_id,
      ]);

    /** @var \Drupal\profile\Entity\ProfileInterface $profile */
    $profile = reset($profiles);

    // It must be a Guest so we pick the name values we can get.
    if (!$profile) {
      $name = '';
      $first_name = $entity->get('field_first_name')->getValue()[0]['value'];
      $last_name = $entity->get('field_last_name')->getValue()[0]['value'];
      if (!empty($first_name)) {
        $name .= $first_name;
        $name .= ' ';
      }
      if (!empty($last_name)) {
        $name .= $last_name;
      }

      return $name;
    }

    /** @var \Drupal\Core\StringTranslation\TranslatableMarkup $label */
    $label = $profile->label();

    return $label->getArguments()['@name'];
  }
1011523
public function getLabel()
    {
        $translationHelper = new TranslationHelper();
        return isset($this->configuration['label']) ? $translationHelper->translate($this->configuration['label']) : '';
    }