Commit cfd0f7a1 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi
Browse files

Merge pull request #2931 from goalgorilla/issue/3280811-book-page-in-flexible-group

Issue #3280811 by vnech: Book page in Flexible Group
parent bf9c2ad3
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/social_features/social_book/config/optional/core.entity_view_display.node.book.activity.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ content:
  field_book_comments:
    type: comment_node
    weight: 2
    label: above
    label: hidden
    settings:
      num_comments: 2
      always_show_all_comments: false
+1 −1
Changes for modules/social_features/social_book/config/optional/core.entity_view_display.node.book.activity_comment.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ content:
  field_book_image:
    type: image
    weight: 0
    label: above
    label: hidden
    settings:
      image_style: social_x_large
      image_link: content
+13
Changes for modules/social_features/social_book/config/update/social_book_update_11401.yml: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
core.entity_view_display.node.book.activity:
  expected_config: { }
  update_actions:
    change:
      content:
        field_book_comments: { label: hidden }
        field_book_image: { label: hidden }
core.entity_view_display.node.book.activity_comment:
  expected_config: { }
  update_actions:
    change:
      content:
        field_book_image: { label: hidden }
+14
Changes for modules/social_features/social_book/social_book.install: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -275,3 +275,17 @@ function social_book_update_10301() {
    user_role_grant_permissions($role_id, ['translate book node']);
  }
}

/**
 * Hide book image field labels in view displays.
 */
function social_book_update_11401(): string {
  /** @var \Drupal\update_helper\Updater $updateHelper */
  $updateHelper = \Drupal::service('update_helper.updater');

  // Execute configuration update definitions with logging of success.
  $updateHelper->executeUpdate('social_book', __FUNCTION__);

  // Output logged messages to related channel of update execution.
  return $updateHelper->logger()->output();
}
+26
Changes for modules/social_features/social_group/modules/social_group_flexible_group/modules/social_flexible_group_book/config/install/core.entity_view_display.group_content.flexible_group-group_node-book.activity.yml: 26 added lines, 0 removed lines.
Original line number Diff line number Diff line
langcode: en
status: true
dependencies:
  config:
    - core.entity_view_mode.group_content.activity
    - group.content_type.flexible_group-group_node-book
  enforced:
    module:
      - social_flexible_group_book
id: group_content.flexible_group-group_node-book.activity
targetEntityType: group_content
bundle: flexible_group-group_node-book
mode: activity
content:
  entity_id:
    type: entity_reference_entity_view
    weight: 0
    region: content
    label: hidden
    settings:
      view_mode: activity
      link: false
    third_party_settings: {  }
hidden:
  langcode: true
  uid: true
Loading