You are here

public function FieldGroupConfiguration::saveToActiveStore in Configuration Management 7.2

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

Overrides CtoolsConfiguration::saveToActiveStore

File

lib/Drupal/configuration/Config/FieldGroupConfiguration.php, line 53
Definition of Drupal\configuration\Config\FieldGroupHandlerConfiguration.

Class

FieldGroupConfiguration

Namespace

Drupal\configuration\Config

Code

public function saveToActiveStore(ConfigIteratorSettings &$settings) {
  ctools_include('export');
  $object = ctools_export_crud_load($this
    ->getComponent(), $this
    ->getIdentifier());
  if ($object) {
    ctools_export_crud_delete($this
      ->getComponent(), $object);
  }
  $data = $this
    ->getData();
  $data->export_type = NULL;
  $group = field_group_unpack($data);
  ctools_export_crud_save($this
    ->getComponent(), $group);
  $settings
    ->addInfo('imported', $this
    ->getUniqueId());
}