You are here

function content_kanban_update_8002 in Content Planner 8

Updates the Kanban log entity create new field entity_type.

File

modules/content_kanban/content_kanban.install, line 33
Contains install and uninstall functionality of the module.

Code

function content_kanban_update_8002() {
  $field_storage_definition = BaseFieldDefinition::create('string')
    ->setLabel(t('Entity Type'))
    ->setDescription(t('The type of the entity.'))
    ->setDefaultValue('');
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('entity_type', 'content_kanban_log', 'content_kanban_log', $field_storage_definition);
}