/** * {@inheritdoc} */ public function copyChildless() { /** @var DataNavigationItem $new */ $new = parent::copyChildless(); $new->setDataResultKey($this->getDataResultKey()); $new->setDataNameKey($this->getDataNameKey()); $new->setDataChildrenLinkKey($this->getDataChildrenLinkKey()); $new->setInstanceName($this->getInstanceName()); $new->setShowAddButton($this->getShowAddButton()); $new->setNoDataTranslationKey($this->getNoDataTranslationKey()); $new->setTitleTranslationKey($this->getTitleTranslationKey()); $new->setAddButtonTranslationKey($this->getAddButtonTranslationKey()); $new->setSearchTranslationKey($this->getSearchTranslationKey()); return $new; }