Problem/Motivation
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);
}Remaining tasks
User interface changes
None
API changes
A new API method on HostEntity.
Data model changes
None.
Issue fork registration-3534548
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jonathanshawComment #5
john.oltman commented