Commit aee8a4b2 authored by Kurucz István's avatar Kurucz István
Browse files

Issue #3222748: show page title in logout page

parent 5a0ee9b2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -33,6 +33,16 @@ final class LogoutPageController extends ControllerBase {
    );
  }

  /**
   * Get logout page title.
   *
   * @return string
   */
  public function getPageTitle() {
    $pageTitle = $this->config('redirect_after_logout.settings')->get('logoutPage.title');
    return $this->token->replace($pageTitle);
  }

  /**
   * Provides content.
   */
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ final class RedirectAfterLogoutPageRouting extends RouteSubscriberBase {
      $route = new Route($config->get('destination'));
      $route->addDefaults([
        '_controller' => LogoutPageController::class . '::pageContent',
        '_title' => $config->get('createdPage.title'),
        '_title_callback' => LogoutPageController::class . '::getPageTitle'
      ]);
      $route->addRequirements([
        '_access' => 'TRUE',