classes/hypeJunction/Prototyper/Elements/Field.php
public function getLabel($lang = '', $raw = false) {

		$key = implode(':', array_filter(array(
			'label',
			$this->entity_type,
			$this->entity_subtype,
			$this->getShortname()
		)));

		if ($raw) {
			return $key;
		}

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

		if (!$lang) {
			$lang = get_language();
		}

		if (is_string($this->label)) {
			$translation = $this->label;
		} else if (is_array($this->label)) {
			$translation = elgg_extract($lang, $this->label);
		}

		return ($translation) ? $translation : elgg_echo($key, array(), $lang);
	}
public function getLabel($lang = '', $raw = false) {

		$key = implode(':', array_filter(array(
			'label',
			$this->entity_type,
			$this->entity_subtype,
			$this->getShortname()
		)));

		if ($raw) {
			return $key;
		}

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

		if (!$lang) {
			$lang = get_language();
		}

		if (is_string($this->label)) {
			$translation = $this->label;
		} else if (is_array($this->label)) {
			$translation = elgg_extract($lang, $this->label);
		}

		return ($translation) ? $translation : elgg_echo($key, array(), $lang);
	}
{@inheritdoc}