You are here

function commerce_product_config_schema_info_alter in Commerce Core 8.2

Implements hook_config_schema_info_alter().

This method provides a compatibility layer to allow new config schemas to be used with older versions of Drupal.

File

modules/product/commerce_product.module, line 346
Defines the Product entity and associated features.

Code

function commerce_product_config_schema_info_alter(&$definitions) {
  if (!isset($definitions['field.widget.settings.entity_reference_autocomplete']['mapping']['match_limit'])) {
    $definitions['field.widget.settings.entity_reference_autocomplete']['mapping']['match_limit'] = [
      'type' => 'integer',
      'label' => 'Maximum number of autocomplete suggestions.',
    ];
  }
}