function registration_property_host_get in Entity Registration 7
Same name and namespace in other branches
- 8.2 registration.module \registration_property_host_get()
- 8 registration.module \registration_property_host_get()
- 7.2 registration.module \registration_property_host_get()
Callback to get $registration->host.
See also
registration_entity_property_info().
1 string reference to 'registration_property_host_get'
File
- ./
registration.module, line 1743
Code
function registration_property_host_get(Registration $registration, array $options, $property_name, $entity_type) {
$entity = entity_load_single($registration->entity_type, $registration->entity_id);
return entity_metadata_wrapper($registration->entity_type, $entity);
}