标签: php entity drupal-8
我是否需要定义文件(如Drupal \ entity_test_update \ Entity \ EntityTestNew)在Drupal8中创建实体?
$definition [ 'id' => 'id', 'uuid' => 'uuid', ]; \Drupal::entityDefinitionUpdateManager() ->installEntityType(new ContentEntityType($definition));