You are here

public static function GridStackManager::configSchemaInfoAlter in GridStack 8

Implements hook_config_schema_info_alter().

@todo: Also verify widget.module, and revisit if any further change.

File

src/GridStackManager.php, line 606

Class

GridStackManager
Implements GridStackManagerInterface.

Namespace

Drupal\gridstack

Code

public static function configSchemaInfoAlter(array &$definitions) {

  // Panels passes its layout.settings to layout_plugin.settings.
  if (isset($definitions['layout_plugin.settings'])) {
    self::mapConfigSchemaInfoAlter($definitions['layout_plugin.settings'], 'panelizer');
  }

  // @todo: Remove when DS passes layout.settings to layout_plugin.settings.
  if (isset($definitions['core.entity_view_display.*.*.*.third_party.ds'])) {
    self::mapConfigSchemaInfoAlter($definitions['core.entity_view_display.*.*.*.third_party.ds']['mapping']['layout']['mapping']['settings']);
  }
}