You are here

public function ProtectedPagesLoginForm::protectedPageTitle in Protected Pages 8

Route title callback.

Return value

string The protected page login screen title.

1 string reference to 'ProtectedPagesLoginForm::protectedPageTitle'
protected_pages.routing.yml in ./protected_pages.routing.yml
protected_pages.routing.yml

File

src/Form/ProtectedPagesLoginForm.php, line 104

Class

ProtectedPagesLoginForm
Provides login screen to access protected page.

Namespace

Drupal\protected_pages\Form

Code

public function protectedPageTitle() {
  $config = $this
    ->config('protected_pages.settings');
  return Html::escape($config
    ->get('others.protected_pages_title'));
}