You are here

public function ContentTypeConfiguration::saveToActiveStore in Configuration Management 7.2

Implements Drupal\configuration\Config\Configuration::saveToActiveStore().

Overrides Configuration::saveToActiveStore

File

lib/Drupal/configuration/Config/ContentTypeConfiguration.php, line 126
Definition of Drupal\configuration\Config\ContentTypeConfiguration.

Class

ContentTypeConfiguration

Namespace

Drupal\configuration\Config

Code

public function saveToActiveStore(ConfigIteratorSettings &$settings) {
  $info = (object) $this
    ->getData();
  $info->base = 'node_content';
  $info->module = 'node';
  $info->custom = 1;
  $info->modified = 1;
  $info->locked = 0;
  node_type_save($info);
  $settings
    ->addInfo('imported', $this
    ->getUniqueId());
}