Skip to content

Commit

Permalink
Media with HTML description
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuechner committed Oct 15, 2024
1 parent 1c86a67 commit 9397998
Show file tree
Hide file tree
Showing 9 changed files with 156 additions and 91 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"drupal/editor_advanced_link": "^2.0",
"drupal/eu_cookie_compliance": "^1.19",
"drupal/field_group": "^3.2",
"drupal/field_type_converter": "^1.0@alpha",
"drupal/field_validation": "^3.0@beta",
"drupal/focal_point": "^2.0",
"drupal/gin": "3.x-dev@dev",
Expand Down
152 changes: 100 additions & 52 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions web/modules/custom/ddbp_tools/ddbp_tools.module
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,10 @@ function ddbp_tools_preprocess_views_view(array &$variables) {
}
}
}

function ddbp_tools_post_update_media_description(&$sandbox) {
$field_map['media'] = [
'field_description' => 'text_long',
];
return \Drupal\field_type_converter\FieldTypeConverter::processBatch($sandbox, $field_map);
}
Loading

0 comments on commit 9397998

Please sign in to comment.