Change record status: 
Project: 
Introduced in branch: 
11.5.x
Introduced in version: 
11.5.0
Description: 

In Drupal core 9.3 was introduced bundle class feature for nodes. As event node type has a lot fields which take part in the event behaviours, event itself should have these behaviours like an object methods. That's why event node type was wrapped in own node bundle class - \Drupal\social_event\Entity\Node\Event.

The service social_event.enroll was declared as deprecated because the method \Drupal::service('social_event.enroll')->isEnabled($event) was moved to \Drupal\social_event\Entity\Node\Event::isEnrollmentEnabled().

Impacts: 
Module developers
Site templates, recipes and distribution developers