removed error logging, also did something with the search, which now works
This commit is contained in:
@ -140,17 +140,3 @@ function opencase_entities_theme_suggestions_oc_event(array $variables) {
|
||||
return $suggestions;
|
||||
}
|
||||
|
||||
/* Presave hook on actor entities to manage user creation.
|
||||
- If a linked user already exists with that email, it does nothing.
|
||||
- If a user exists with that email but it has no linked actor, it links it.
|
||||
- If a user exists with that email which already has a linked actor, it fails validation.
|
||||
- If a linked user exists with a different email, it updates the email.
|
||||
*/
|
||||
function opencase_entities_oc_actor_presave(Drupal\Core\Entity\EntityInterface $entity) {
|
||||
if ($entity->get('user_login')->value) {
|
||||
|
||||
error_log($entity->get('first_name')->value);
|
||||
error_log($entity->get('last_name')->value);
|
||||
error_log($entity->get('email')->value);
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,6 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
|
||||
public static function currentDateTime() {
|
||||
$current_time = DrupalDateTime::createFromTimestamp(time());
|
||||
$formatted = $current_time->format('Y-m-d');
|
||||
error_log($formatted);
|
||||
return $formatted;
|
||||
}
|
||||
/**
|
||||
|
Reference in New Issue
Block a user