You are here

function opigno_group_manager_update_8001 in Opigno group manager 8

Add check if the content in the skills system.

File

./opigno_group_manager.install, line 28
Opigno group manager install/update functionality.

Code

function opigno_group_manager_update_8001() {
  $definition_manager = \Drupal::entityDefinitionUpdateManager();
  $field = BaseFieldDefinition::create('boolean')
    ->setLabel(t('In the sills system'))
    ->setDescription(t('Indicate if this module in the skills system.'))
    ->setDefaultValue(0);
  $definition_manager
    ->installFieldStorageDefinition('in_skills_system', 'opigno_group_content', 'opigno_group_manager', $field);
}