You are here

protected function ContentTranslationDefaultsConfigOverride::getDisplayName in Open Social 8.8

Same name in this branch
  1. 8.8 modules/social_features/social_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_landing_page\ContentTranslationDefaultsConfigOverride::getDisplayName()
  2. 8.8 modules/social_features/social_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_page\ContentTranslationDefaultsConfigOverride::getDisplayName()
  3. 8.8 modules/social_features/social_book/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_book\ContentTranslationDefaultsConfigOverride::getDisplayName()
  4. 8.8 modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  2. 8.4 modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  3. 8.5 modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  4. 8.6 modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  5. 8.7 modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  6. 10.3.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  7. 10.0.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  8. 10.1.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()
  9. 10.2.x modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_event\ContentTranslationDefaultsConfigOverride::getDisplayName()

Returns the display name for this set of configuration overrides.

This can be used in a user interface to let sitemanagers determine which parts of Open Social should be translatable. For consistency when displaying this should always be a plural string.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup|string The (translatable) string that can be shown to the user.

Overrides ContentTranslationConfigOverrideBase::getDisplayName

File

modules/social_features/social_event/src/ContentTranslationDefaultsConfigOverride.php, line 24

Class

ContentTranslationDefaultsConfigOverride
Provides content translation defaults for the event content type.

Namespace

Drupal\social_event

Code

protected function getDisplayName() {

  // We can't use dependency injection here because it causes a circular
  // dependency for the configuration override.
  return \Drupal::translation()
    ->translate('Events');
}