NodeTypeMapper.php in Zircon Profile 8
File
core/modules/node/src/ConfigTranslation/NodeTypeMapper.php
View source
<?php
namespace Drupal\node\ConfigTranslation;
use Drupal\config_translation\ConfigEntityMapper;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
class NodeTypeMapper extends ConfigEntityMapper {
public function setEntity(ConfigEntityInterface $entity) {
parent::setEntity($entity);
$node_type = $entity
->id();
$config = $this->configFactory
->get("core.base_field_override.node.{$node_type}.title");
if (!$config
->isNew()) {
$this
->addConfigName($config
->getName());
}
}
}