diff --cc core/modules/config_translation/src/ConfigEntityMapper.php index faf8991,348ad43..0000000 --- a/core/modules/config_translation/src/ConfigEntityMapper.php +++ b/core/modules/config_translation/src/ConfigEntityMapper.php diff --git a/core/modules/config_translation/src/ConfigEntityMapperInterface.php b/core/modules/config_translation/src/ConfigEntityMapperInterface.php index c7cf262..65a4cc5 100644 --- a/core/modules/config_translation/src/ConfigEntityMapperInterface.php +++ b/core/modules/config_translation/src/ConfigEntityMapperInterface.php @@ -18,14 +18,15 @@ public function getEntity(); /** - * Sets the entity this configuration mapper is for. + * Sets the entity instance for this mapper. * - * This method is invoked when the concrete entity is known from the route - * match on an entity translation path. After this method is called, the - * mapper is fully populated with the proper display title and configuration - * names to use to check permissions or display a translation screen. + * This method can only be invoked when the concrete entity is known, that is + * in a request for an entity translation path. After this method is called, + * the mapper is fully populated with the proper display title and + * configuration names to use to check permissions or display a translation + * screen. * - * @param \Drupal\Core\Config\Entity\ConfigEntityInterface $entity + * @param \Drupal\Core\Config\Entity\ConfigEntityInterface * The configuration entity to set. * * @return bool