public function getAsLabel()
    {
        // Remove first part since that part equals the page
        $key = substr($this->key, strpos($this->key, '.')+1);

        $label = str_replace('.', ' ', $key);

        return ucfirst($label);
    }
public function getAsLabel()
    {
        // Remove first part since that part equals the page
        $key = substr($this->key, strpos($this->key, '.')+1);

        $label = str_replace('.', ' ', $key);

        return ucfirst($label);
    }
public function getAsLabel ( ) { // Remove first part since that part equals the page $ key = substr ( $ this -> key , strpos ( $ this -> key , '.' ) + 1 ) ; $ label = str_replace ( '.' , ' ' , $ key ) ; return ucfirst ( $ label ) ; }
Get suggestion for a label based on the key

@return string
Get suggestion for a label based on the key