Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

openy_er

176 sites Security covered
View on drupal.org

πŸ‡ΊπŸ‡¦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

The idea of the module is to provide enhancements to the Core entity reference fields in the Open Y installation profile.

Long story short - when you need to keep dependencies in configs, but not making configs failing if dependency is not in place - use this module. It'll store dependencies but allow them to be skipped during installation.

Very useful for large distributions when fighting with dependency hell.

Entity Reference Selection Handler plugins

The plugins stored at src/Plugin/EntityReferenceSelection must be used in ER-fields if additional bundle filtering is setup and you export configuration of those fields into the profile.

Default Selection Handlers put dependency for each single bundle setup there, because the core works the way, that 'target_bundles' field settings entries add dependencies. See EntityReferenceItem::calculateDependencies().

DefaultSelectionNoDependency is basically needed to create a label for the group of Open Y selection handlers.

SelectionNoDependecyTrait is useful for inheriting from existing entity type specific selection handlers (see NodeSelectionNoDependency implementation as example).
See Traits Precendence section to understand how PHP handles method overrides when traits are used.

Migrating from core selection handlers to Open Y selection handlers

  • Go to the required entity refrence field configuration page that is provided by Field UI
  • Find "REFERENCE TYPE" section that contains "Reference method" field and a set of checkboxes for bundles limiting
  • Memorize the set of the selected bundles
  • Update "Reference method" value from 'Default' to 'Default (Open Y)'
  • Restore the state of the checkboxes (it can be named 'Content types' for nodes, or just 'Bundles' for other entity types)
  • Submit the form
  • Export the config (or the whole feature)
  • Verify field config doesn't contain dependencies to the bundle configs
  • Make sure the module now depends on openy_er module

Activity

Total releases
1
First release
May 2025
Latest release
11 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.1.1 Stable May 1, 2025