Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Tested with latest dev and 1.7 of Forward, 2.6 version of Display Suite.
When working a view mode without DS taking over it all goes well, but once you enable the DS layout for the view mode, it starts producing this warning (the node type of course is different each time). It fires regardless of the Forward settings, whether it's configured for this node type or not, just all the time.
Notice: Undefined index: entity in Drupal\ds\Plugin\DsField\DsFieldBase->entity() (line 112 of modules/contrib/ds/src/Plugin/DsField/DsFieldBase.php).
Drupal\ds\Plugin\DsField\DsFieldBase->entity() (Line: 89)
Drupal\forward\Plugin\DsField\ForwardForm->isAllowed() (Line: 1089)
_ds_field_ui_fields('node', 'video', 'full', Array, Object) (Line: 46)
ds_field_ui_fields_layouts(Array, Object) (Line: 116)
ds_form_entity_view_display_edit_form_alter(Array, Object, 'entity_view_display_edit_form') (Line: 501)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'entity_view_display_edit_form') (Line: 816)
Drupal\Core\Form\FormBuilder->prepareForm('entity_view_display_edit_form', Array, Object) (Line: 272)
Drupal\Core\Form\FormBuilder->buildForm('entity_view_display_edit_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
No time to fix and investigate in more detail now, so just leaving here to check later.
Comments
Comment #3
john.oltman CreditAttribution: john.oltman commentedCommitted fix to dev branch.
Comment #4
john.oltman CreditAttribution: john.oltman commented@meramo can you try the 8.x-1.x-dev release and let me know if that works. Thank you.