You are here

function bibcite_update_8002 in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x bibcite.install \bibcite_update_8002()

Add config_export property to CSL style config entity.

File

./bibcite.install, line 42
Module installation hooks implementation.

Code

function bibcite_update_8002() {
  $definition_update_manager = \Drupal::entityDefinitionUpdateManager();

  // Update CSL style entity.
  $bibcite_csl_style = $definition_update_manager
    ->getEntityType('bibcite_csl_style');
  $bibcite_csl_style
    ->set('config_export', [
    'id',
    'parent',
    'label',
    'csl',
    'updated',
    'custom',
    'url_id',
    'override',
    'preview_mode',
    'citekey_pattern',
    'fields',
  ]);
  $definition_update_manager
    ->updateEntityType($bibcite_csl_style);
}