- 🇨🇭Switzerland wengerk Lausanne
Openned an issue fork to run tests againts patch. I found some mistake on the rerolled patch in #50 and fix thoses issues on the Fork.
Seems to works now. I just rerolled the patch and change this code.public function pageTitle($page_manager_page_variant) { if (is_string($page_manager_page_variant)) { $page_manager_page_variant = $this->entityRepository->loadEntityByConfigTarget('page_variant', $page_manager_page_variant); }
to this
public function pageTitle(Request $request) { $attributes = $request->attributes->all(); if (!isset($attributes['_page_manager_page_variant'])) { return ''; } if (is_string($attributes['_page_manager_page_variant'])) { $page_manager_page_variant = $this->entityRepository->loadEntityByConfigTarget('page_variant', $attributes['_page_manager_page_variant']); } elseif ($attributes['_page_manager_page_variant'] instanceof PageVariantInterface) { $page_manager_page_variant = $attributes['_page_manager_page_variant']; } else { return ''; }