You are here

d7_filter_format.yml in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/filter/migrations/d7_filter_format.yml
core/modules/filter/migrations/d7_filter_format.yml

File

core/modules/filter/migrations/d7_filter_format.yml
View source
  1. id: d7_filter_format
  2. label: Filter format configuration
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: d7_filter_format
  8. process:
  9. format: format
  10. status: status
  11. name: name
  12. cache: cache
  13. weight: weight
  14. filters:
  15. plugin: sub_process
  16. source: filters
  17. key: '@id'
  18. process:
  19. id:
  20. # If the filter ID cannot be mapped, it will pass through unmodified
  21. # because the bypass flag is set. When the user actually tries to
  22. # view text through an invalid filter plugin, the filter system will
  23. # fall back to filter_null and display a helpful error message.
  24. plugin: filter_id
  25. bypass: true
  26. source: name
  27. # Although core filter plugin IDs haven't changed since Drupal 7, we map
  28. # the contrib filters of the Editor module – those are the Drupal 7
  29. # backport of some of the new filters in Drupal 8 core. Hence Drupal 8
  30. # core is responsible for providing an upgrade path for those contrib
  31. # filters.
  32. map:
  33. editor_caption: filter_caption
  34. editor_align: filter_align
  35. settings:
  36. plugin: filter_settings
  37. source: settings
  38. status:
  39. plugin: default_value
  40. default_value: true
  41. weight: weight
  42. destination:
  43. plugin: entity:filter_format