You are here

function registration_property_registrant_set in Entity Registration 8.2

Same name and namespace in other branches
  1. 7.2 registration.module \registration_property_registrant_set()

Callback to set $registration->registrant that supports null value.

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

File

./registration.module, line 1809

Code

function registration_property_registrant_set(Registration $registration, $name, $value, $lang, $type, $info) {
  $registration->{$info['schema field']} = is_object($value) ? $value
    ->getIdentifier() : NULL;
}