You are here

protected function LingotekConfigSubscriber::getMapperFromConfigName in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  2. 4.0.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  3. 3.0.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  4. 3.1.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  5. 3.2.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  6. 3.3.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  7. 3.4.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  8. 3.5.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  9. 3.6.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  10. 3.7.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
  11. 3.8.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
1 call to LingotekConfigSubscriber::getMapperFromConfigName()
LingotekConfigSubscriber::onConfigSave in src/EventSubscriber/LingotekConfigSubscriber.php
Updates the configuration translation status when a configuration is saved.

File

src/EventSubscriber/LingotekConfigSubscriber.php, line 144
Contains \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber.

Class

LingotekConfigSubscriber
Updates config Lingotek translation status when saved.

Namespace

Drupal\lingotek\EventSubscriber

Code

protected function getMapperFromConfigName($name) {

  // ToDo: This is inefficient.
  foreach ($this->mappers as $mapper) {
    $names = $mapper
      ->getConfigNames();
    foreach ($names as $the_name) {
      if ($the_name === $name) {
        return $mapper;
      }
    }
  }
  return NULL;
}