protected function LingotekConfigSubscriber::getMapperFromConfigName in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 4.0.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.0.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.1.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.2.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.3.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.4.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.5.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.6.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 3.7.x src/EventSubscriber/LingotekConfigSubscriber.php \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber::getMapperFromConfigName()
- 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\EventSubscriberCode
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;
}