Adding page_seo tab to custom entity #7015
Unanswered
niji-rmejean
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ! I'd like to add the tab page_seo to my custom entity form, but I don't find an easy way to make that. Is there any example somewhere ? I think there a some similarities with https://docs.sulu.io/en/2.5/cookbook/add-admin-tabs.html but it does not seems to be exaclty the same.
EDIT : I finally solved my problem.
$viewCollection->add(
$this->viewBuilderFactory
->createListViewBuilder('viewname')
->setResourceKey($this->entityType->value)
->setListKey($this->entityType->value)
->setTitle('title')
->addListAdapters(['table'])
->addLocales($locales)
->setDefaultLocale($locales[0])
->setAddView($this->generateViewName(self::ADD_FORM_VIEW))
->setEditView($this->generateViewName(self::EDIT_FORM_VIEW))
->addToolbarActions($listToolbarActions)
);
Beta Was this translation helpful? Give feedback.
All reactions