Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocaleConfigManager.php

function LocaleConfigManager::isSupported

Whether the given configuration is supported for interface translation.

Parameters

string $name: The configuration name.

Return value

bool TRUE if interface translation is supported.

1 call to LocaleConfigManager::isSupported()
LocaleConfigManager::getTranslatableDefaultConfig in core/modules/locale/src/LocaleConfigManager.php
Gets array of translated strings for Locale translatable configuration.

File

core/modules/locale/src/LocaleConfigManager.php, line 530

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

Namespace

Drupal\locale

Code

public function isSupported($name) {
    return $this->getDefaultConfigLangcode($name) == 'en' && $this->configStorage
        ->read($name);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal