コード例 #1
0
 /**
  * @param string $className
  * @param string $mode      Can be the value of one of ConfigModel::MODE_* constants
  */
 protected function changeEntityMode($className, $mode)
 {
     if ($this->configManager->getConfigEntityModel($className)->getMode() !== $mode) {
         $this->logger->info(sprintf('Update a mode to "%s". Entity: %s.', $mode, $className));
         $this->configManager->changeEntityMode($className, $mode);
     }
 }