protected function ResourceFieldEntity::referencedId in RESTful 7.2
Helper function to get the referenced entity ID.
Parameters
\EntityDrupalWrapper $property_wrapper: The wrapper for the referenced file array.
Return value
mixed The ID.
1 call to ResourceFieldEntity::referencedId()
- ResourceFieldEntity::propertyIdentifier in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - Helper function to get the identifier from a property wrapper.
1 method overrides ResourceFieldEntity::referencedId()
- ResourceFieldEntityReference::referencedId in src/
Plugin/ resource/ Field/ ResourceFieldEntityReference.php - Helper function to get the referenced entity ID.
File
- src/
Plugin/ resource/ Field/ ResourceFieldEntity.php, line 1140 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity
Class
- ResourceFieldEntity
- Class ResourceFieldEntity.
Namespace
Drupal\restful\Plugin\resource\FieldCode
protected function referencedId($property_wrapper) {
return $property_wrapper
->getIdentifier() ?: NULL;
}