function content_kanban_update_8001 in Content Planner 8
Updates the Kanban log entity create new field entity id.
File
- modules/
content_kanban/ content_kanban.install, line 21 - Contains install and uninstall functionality of the module.
Code
function content_kanban_update_8001() {
$field_storage_definition = BaseFieldDefinition::create('string')
->setLabel(t('Entity ID'))
->setDescription(t('The ID of the Entity this Log refers to'));
\Drupal::entityDefinitionUpdateManager()
->installFieldStorageDefinition('entity_id', 'content_kanban_log', 'content_kanban_log', $field_storage_definition);
}