function ContentLanguageSettingsForm::getTitle

Same name and namespace in other branches
  1. 10 core/modules/language/src/Form/ContentLanguageSettingsForm.php \Drupal\language\Form\ContentLanguageSettingsForm::getTitle()

The _title_callback for the language.content_settings_page route.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The page title.

1 string reference to 'ContentLanguageSettingsForm::getTitle'
language.routing.yml in core/modules/language/language.routing.yml
core/modules/language/language.routing.yml

File

core/modules/language/src/Form/ContentLanguageSettingsForm.php, line 82

Class

ContentLanguageSettingsForm
Configure the content language settings for this site.

Namespace

Drupal\language\Form

Code

public function getTitle() : string {
    if ($this->moduleHandler
        ->moduleExists('content_translation')) {
        return $this->t('Content language and translation');
    }
    else {
        return $this->t('Content language');
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.