public function getTitle()
{
$values = $this->AttributeValues();
if ($values->exists()) {
$labelvalues = array();
foreach ($values as $value) {
if (self::config()->title_has_label) {
$labelvalues[] = $value->Type()->Label . self::config()->title_separator . $value->Value;
} else {
$labelvalues[] = $value->Value;
}
}
return implode(self::config()->title_glue, $labelvalues);
}
$this->extend('updateTitle', $title);
return $title;
}