classes/hypeJunction/Prototyper/Elements/AttributeField.php
public function getValues(\ElggEntity $entity) {

		$sticky = $this->getStickyValue();
		if ($sticky) {
			return $sticky;
		}
		
		$name = $this->getShortname();
		switch ($name) {
			default :
				return ($entity->$name) ?: $this->getDefaultValue();

			case 'type' :
				return $entity->getType();

			case 'subtype' :
				return $entity->getSubtype();
		}
	}
public function getValues(\ElggEntity $entity) {

		$sticky = $this->getStickyValue();
		if ($sticky) {
			return $sticky;
		}
		
		$name = $this->getShortname();
		switch ($name) {
			default :
				return ($entity->$name) ?: $this->getDefaultValue();

			case 'type' :
				return $entity->getType();

			case 'subtype' :
				return $entity->getSubtype();
		}
	}
{@inheritdoc}