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

Breadcrumb

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

function ConfigMapperInterface::hasTranslation

Checks whether there is already a translation for this mapper.

Parameters

\Drupal\Core\Language\LanguageInterface $language: A language object.

Return value

bool TRUE if any of the configuration elements have a translation in the given language, FALSE otherwise.

1 method overrides ConfigMapperInterface::hasTranslation()
ConfigNamesMapper::hasTranslation in core/modules/config_translation/src/ConfigNamesMapper.php
Checks whether there is already a translation for this mapper.

File

core/modules/config_translation/src/ConfigMapperInterface.php, line 282

Class

ConfigMapperInterface
Defines an interface for configuration mapper.

Namespace

Drupal\config_translation

Code

public function hasTranslation(LanguageInterface $language);

API Navigation

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