Registry / other / drupal-dynamic-entity-reference

drupal-dynamic-entity-reference

JSON →
library3.2.1phppackagistunverified

Provides a field that allows an entity-reference field to reference more than one entity type.

composer require drupal/dynamic_entity_reference
INSTALL
IMPORT
SIG · DRUPAL-DYNAMIC-ENT
D
drupal-dynamic-entity-reference
otherphpv3.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DynamicEntityReferenceItem
use Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceItem;

Create a dynamic entity reference field item pointing to a node.

use Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceItem; $item = new DynamicEntityReferenceItem([]); $item->setValue(['target_id' => 1, 'target_type' => 'node']);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
drupal-dynamic-entity-reference — pip install drupal-dynamic-entity-reference · libregistry