src/traits/ReflectionTraits.php
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;
		}
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;
		}
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 ; }
Determines the label for the element

Returns a @label parameter, if available, otherwise, humanizes the element name

@param null $default
@return null|string
Determines the label for the element