defaultSort = $defaultSort; } protected function addPropertyValues() { $sortkey = $this->defaultSort ? $this->defaultSort : $this->getSemanticData()->getSubject()->getSortKey(); $property = $this->dataItemFactory->newDIProperty( DIProperty::TYPE_SORTKEY ); if ( !$this->getSemanticData()->hasProperty( $property ) ) { $this->getSemanticData()->addPropertyObjectValue( $property, $this->dataItemFactory->newDIBlob( $sortkey ) ); } } }