"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/modules/path/migrations/d7_url_alias.yml" (26 Nov 2020, 1085 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 id: d7_url_alias
    2 label: URL aliases
    3 migration_tags:
    4   - Drupal 7
    5   - Content
    6 source:
    7   plugin: d7_url_alias
    8   constants:
    9     slash: '/'
   10 process:
   11   # If you are using this file to build a custom migration consider removing
   12   # the id field to allow incremental migrations.
   13   id: pid
   14   _path:
   15     plugin: concat
   16     source:
   17       - constants/slash
   18       - source
   19   alias:
   20     plugin: concat
   21     source:
   22       - constants/slash
   23       - alias
   24   node_translation:
   25     -
   26       plugin: explode
   27       source: source
   28       delimiter: /
   29     -
   30       # If the source path has no slashes return a dummy default value.
   31       plugin: extract
   32       default: 'INVALID_NID'
   33       index:
   34         - 1
   35     -
   36       plugin: migration_lookup
   37       migration:
   38         - d7_node_complete
   39         - d7_node_translation
   40     -
   41       plugin: node_complete_node_translation_lookup
   42   langcode:
   43     plugin: null_coalesce
   44     source:
   45       - '@node_translation/1'
   46       - language
   47   path:
   48     plugin: path_set_translated
   49     source:
   50       - '@_path'
   51       - '@node_translation'
   52 destination:
   53   plugin: entity:path_alias