added update hook for total cases field
This commit is contained in:
parent
f671580ed7
commit
a5132bbcfc
@ -1,6 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
use \Drupal\Core\Field\BaseFieldDefinition;
|
use \Drupal\Core\Field\BaseFieldDefinition;
|
||||||
|
|
||||||
|
function opencase_cases_update_90005() {
|
||||||
|
$field_storage_definition = BaseFieldDefinition::create('integer')
|
||||||
|
->setLabel(t('Number of Cases'))
|
||||||
|
->setRevisionable(TRUE)
|
||||||
|
->setDisplayConfigurable('view', true);
|
||||||
|
|
||||||
|
\Drupal::entityDefinitionUpdateManager()
|
||||||
|
->installFieldStorageDefinition('total_cases', 'oc_actor', 'opencase_cases', $field_storage_definition);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function opencase_cases_update_90004() {
|
function opencase_cases_update_90004() {
|
||||||
$field_storage_definition = BaseFieldDefinition::create('string_long')
|
$field_storage_definition = BaseFieldDefinition::create('string_long')
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
|
Reference in New Issue
Block a user