Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Limit Entity Reference Owner

Security covered Under active development

This module adds a setting to entity reference fields that restricts references to entities owned by the same owner as the parent entity. If ownership cannot be determined, it defaults to validating against the current user.

A simple module that adds a field setting to entity reference fields which, when enabled, validates that the field only references entities that are owned by the owner of the entity on which the field is attached. If the entity does not implement EntityOwnerInterface or the owner ID is null, it instead validates against the current user.

For instance, let's say an article node references media entities via field_media. If an article is owned/authored by uid 1, then field_media will throw a validation error if it references a media entity owned by uid 2.

Drupal 9–10 · not 11

Ask your assistant about Limit Entity Reference Owner

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0 Stable 9–10 Aug 19, 2023
1.0.x-dev Dev 9–10 Aug 19, 2023