Problem/Motivation
Block content entities do not have an owner (uid) field, they do have a revision_user field. All other core entity types have owner fields, block content should have one too!
Proposed resolution
- Add owner entity key to BlockContent entity type
- Add EntityOwnerInterface to BlockContentInterface and add EntityOwnerTrait to BlockContent
- Add ownerBaseFieldDefinitions to baseFieldDefinitions
- Add an upgrade path that sets the author of existing Block Content entities to the value of the first revision's revision_user
- Add an upgrade path to install the new owner field
Implement/copy JS to show authoring information on the edit form like nodeDetailsSummaries and mediaFormSummaries behaviours- Split to #3403252: [PP1] Implement authoring information form element and summary for Block Content- Write tests
Canonical MR is https://git.drupalcode.org/project/drupal/-/merge_requests/5500
Disregard all patch files.
Remaining tasks
Rebase MR on to 11.xFix upgrade path to set author properlyAdd upgrade hook to install fieldAdd tests.
Review
Commit