You are here

function entity_embed_update_8004 in Entity Embed 8

Adds new content entity type to remove dependency on node module.

File

./entity_embed.install, line 93
Contains install and update functions for Entity Embed.

Code

function entity_embed_update_8004() {
  \Drupal::entityDefinitionUpdateManager()
    ->installEntityType(new ContentEntityType([
    'id' => 'entity_embed_fake_entity',
    'label' => new TranslatableMarkup('Fake entity type'),
    'handlers' => [
      'storage' => 'Drupal\\Core\\Entity\\ContentEntityNullStorage',
    ],
  ]));
}