public function MenuLinkConfiguration::saveToActiveStore in Configuration Management 7.2
Overrides Drupal\configuration\Config\Configuration::saveToActiveStore().
Overrides Configuration::saveToActiveStore
File
- lib/
Drupal/ configuration/ Config/ MenuLinkConfiguration.php, line 169 - Definition of Drupal\configuration\Config\FieldConfiguration.
Class
Namespace
Drupal\configuration\ConfigCode
public function saveToActiveStore(ConfigIteratorSettings &$settings) {
$data = $this
->getData();
// Determine if the menu already exists.
$data['mlid'] = static::getMenuLinkByIdenfifier($this
->getIdentifier());
if (!empty($data['parent_identifier'])) {
$data['plid'] = static::getMenuLinkByIdenfifier($this->data['parent_identifier'], TRUE);
}
menu_link_save($data);
$settings
->addInfo('imported', $this
->getUniqueId());
}