- ππ·Croatia Aporie
Hi Anybody,
Yes it works. Was also looking for something like that for a while. Would be great to add it to the doc indeed.
On a custom module, this can be reduced to two lines (so don't think we need a wrapper):
$entity_type_definition = \Drupal::service('entity_type.manager')->getDefinition('custom_entity_type'); \Drupal::entityDefinitionUpdateManager()->installEntityType($entity_type_definition);