Skip to content
Snippets Groups Projects

#3523530: Layout builder compatibility fixes.

Merged #3523530: Layout builder compatibility fixes.
1 unresolved thread
Merged Marcin Grabias requested to merge issue/lms-3523530:3523530-layout-builder into 1.0.x
1 unresolved thread

Closes #3523530

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
55 53 // time being and using hook_entity_bundle_field_info() and
56 54 // hook_entity_field_storage_info() that seems a bit cleaner completely
57 55 // overrides definitions in the bundle class, making them obsolete.
56 // If only storage is defined in hook_entity_field_storage_info, those
57 // fields will not be available in layout builder, this however makes
58 // them available for all group bundles which is wrong but lesser evil.
58 59 // @todo Wait for times when this gets better support in core.
59 60 // @see Drupal\lms\Entity\Bundle\Course::bundleFieldDefinitions().
61 // @see https://www.drupal.org/project/drupal/issues/3045509.
60 62 if ($entity_type->id() === 'group') {
61 63 $fields['lessons'] = BaseFieldDefinition::create('lms_reference')
64 ->setLabel($this->t('Course lessons'))
  • Please register or sign in to reply
    Loading