By acbramley on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.3.x
Introduced in version:
11.3.0
Issue links:
Description:
A new EntityReferenceSelection plugin has been added for block_content entities. This automatically filters out non-reusable block_content entities.
This filtering was previously done by BlockContentHooks::queryEntityReferenceAlter to automatically add the condition on the reusable field if it didn't already exist.
This automatic addition of the reusable field is now deprecated. You can either:
- Add the condition manually to your custom EntityReferenceSelection plugin.
- Or, extend
\Drupal\block_content\Plugin\EntityReferenceSelection\BlockContentSelectionfrom your plugin.
Impacts:
Module developers