protected function getLabel() { if ($attribute = $this->getFilteredAttribute()) { // TODO: make this multilingual. if ($label = $this->get('label')) { return $label; } return $attribute->getName(); } return null; }