You are here

function registration_property_host_get in Entity Registration 8.2

Same name and namespace in other branches
  1. 8 registration.module \registration_property_host_get()
  2. 7.2 registration.module \registration_property_host_get()
  3. 7 registration.module \registration_property_host_get()

Callback to get $registration->host.

2 string references to 'registration_property_host_get'
RegistrationMetadataController::entityPropertyInfo in lib/registration.metadata.inc
RegistrationMetadataController::entityPropertyInfo in src/RegistrationMetadataController.php

File

./registration.module, line 1776

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);
}