public function ConfigSourcePluginUi::isTranslated

Checks, if an entity is translated.

Parameters

string $langcode: Language code.

string $name: Configuration name.

Return value

bool Returns TRUE, if it is translatable.

4 calls to ConfigSourcePluginUi::isTranslated()
ConfigSourcePluginUi::getFilteredSimpleConfigDefinitions in sources/tmgmt_config/src/ConfigSourcePluginUi.php
Filter translatable definitions.
ConfigSourcePluginUi::getTranslatableEntities in sources/tmgmt_config/src/ConfigSourcePluginUi.php
Gets translatable entities of a given type.
ConfigSourcePluginUi::overviewRow in sources/tmgmt_config/src/ConfigSourcePluginUi.php
Builds a table row for overview form.
ConfigSourcePluginUi::overviewRowSimple in sources/tmgmt_config/src/ConfigSourcePluginUi.php
Builds a table row for simple configuration.

File

sources/tmgmt_config/src/ConfigSourcePluginUi.php, line 210

Class

ConfigSourcePluginUi
Config source plugin UI.

Namespace

Drupal\tmgmt_config

Code

public function isTranslated($langcode, $name) {
  $config = \Drupal::languageManager()
    ->getLanguageConfigOverride($langcode, $name);
  return !$config
    ->isNew();
}