You are here

function paragraphs_update_8010 in Paragraphs 8

Add behavior plugins fields.

File

./paragraphs.install, line 187
Installation hooks for Paragraphs module.

Code

function paragraphs_update_8010() {
  $storage_definition = BaseFieldDefinition::create('string_long')
    ->setLabel(t('Behavior settings'))
    ->setDescription(t('The behavior plugin settings'));
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('behavior_settings', 'paragraph', 'paragraph', $storage_definition);
}