abstract public function EntityUsageBase::getTargetEntities in Entity Usage 8.4
Retrieve the target entity(ies) from a field item value.
Parameters
\Drupal\Core\Field\FieldItemInterface $item: The field item to get the target entity(ies) from.
Return value
string[] An indexed array of strings where each target entity type and ID are concatenated with a "|" character. Will return an empty array if no target entity could be retrieved from the received field item value.
2 calls to EntityUsageBase::getTargetEntities()
6 methods override EntityUsageBase::getTargetEntities()
- BlockField::getTargetEntities in src/
Plugin/ EntityTrack/ Track/ BlockField.php - Retrieve the target entity(ies) from a field item value.
- DynamicEntityReference::getTargetEntities in src/
Plugin/ EntityTrack/ Track/ DynamicEntityReference.php - Retrieve the target entity(ies) from a field item value.
- EntityReference::getTargetEntities in src/
Plugin/ EntityTrack/ Track/ EntityReference.php - Retrieve the target entity(ies) from a field item value.
- LayoutBuilder::getTargetEntities in src/
Plugin/ EntityTrack/ Track/ LayoutBuilder.php - Retrieve the target entity(ies) from a field item value.
- Link::getTargetEntities in src/
Plugin/ EntityTrack/ Track/ Link.php - Retrieve the target entity(ies) from a field item value.
File
- src/
EntityUsageBase.php, line 199
Class
- EntityUsageBase
- Base implementation for track plugins.
Namespace
Drupal\entity_usageCode
public abstract function getTargetEntities(FieldItemInterface $item);