- Issue created by @jonathanshaw
I wonder if it'd be neat to have a static helper to create a host entity:
public static function create(Entity interface $entity) {
$handler = \Drupal::entityTypeManager()->getHander($entity->getEntityTypeId(), 'registration_host_entity');
return $handler->createHostEntity($entity);
}
None
A new API method on HostEntity.
None.
Active
3.4
Registration Core