public function UpdateRunnerInterface::getEntityReferenceTargetIds in Scheduled Updates 8
Get target entity ids for an entity reference field on a entity.
@todo Is there a way to do this with core Field API?
@todo move this to a Utils trait or class.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity:
$field_name:
bool $sort:
Return value
array Entity Ids for field values. Entity Ids for field values.
1 method overrides UpdateRunnerInterface::getEntityReferenceTargetIds()
- BaseUpdateRunner::getEntityReferenceTargetIds in src/
Plugin/ BaseUpdateRunner.php - Get target entity ids for an entity reference field on a entity.
File
- src/
Plugin/ UpdateRunnerInterface.php, line 102 - Contains Drupal\scheduled_updates\Plugin\UpdateRunnerInterface.
Class
- UpdateRunnerInterface
- Interface for Update Runner Plugins.
Namespace
Drupal\scheduled_updates\PluginCode
public function getEntityReferenceTargetIds(ContentEntityInterface $entity, $field_name, $sort = FALSE);