You are here

function social_book_update_8903 in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_book/social_book.install \social_book_update_8903()
  2. 10.1.x modules/social_features/social_book/social_book.install \social_book_update_8903()

Add small_teaser view mode for book.

File

modules/social_features/social_book/social_book.install, line 249
Install, update and uninstall functions for the social_book module.

Code

function social_book_update_8903() {
  $config_path = drupal_get_path('module', 'social_book') . '/config/static';
  $source = new FileStorage($config_path);

  /** @var \Drupal\Core\Config\StorageInterface $config_storage */
  $config_storage = \Drupal::service('config.storage');
  $config_storage
    ->write('core.entity_view_display.node.book.small_teaser', $source
    ->read('social_book_static_update_8903'));
}