protected function DeveloperCreateUpdate::beforeDeveloperSave in Apigee Edge 8
Execute actions before the developer gets saved.
Parameters
\Drupal\apigee_edge\Structure\UserToDeveloperConversionResult $result: The result of the entity conversion.
\Drupal\user\UserInterface $user: The converted user entity.
Throws
\Exception Can throw exception to abort developer save.
1 call to DeveloperCreateUpdate::beforeDeveloperSave()
- DeveloperCreateUpdate::executeRequest in src/
Job/ DeveloperCreateUpdate.php - Executes the request itself.
File
- src/
Job/ DeveloperCreateUpdate.php, line 103
Class
- DeveloperCreateUpdate
- Base class for user create/update sync jobs.
Namespace
Drupal\apigee_edge\JobCode
protected function beforeDeveloperSave(UserToDeveloperConversionResult $result, UserInterface $user) : void {
$context = [
'link' => $user
->toLink(t('View user'))
->toString(),
];
$this
->logConversionProblems($result
->getProblems(), $context);
}