Skip to content
Snippets Groups Projects
Select Git revision
  • ad273e758ca6cf6a66b527aa3fde9ef265fefe6f
  • 8.x-1.x default
  • 2.1.x
  • 2.0.x
  • 7.x-2.x
  • 7.x-1.x
  • 6.x-1.x
  • 6.x-2.x
  • 4.2.x-1.x
  • 4.5.x-1.x
  • 4.7.x-1.x
  • 5.x-1.x
  • 5.x-2.x
  • 2.1.7
  • 2.1.6
  • 2.1.5
  • 2.1.4
  • 2.1.3
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.0
  • 8.1-1.8
  • 8.x-1.8
  • 8.x-1.7
  • 8.x-1.6
  • 8.x-1.5
  • 8.x-1.4
  • 8.x-1.3
  • 8.x-1.2
  • 7.x-2.13
  • 7.x-2.12
  • 8.x-1.1
33 results

workflow

  • Open with
  • Download source code
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • John Voskuilen's avatar
    Issue #3507882: Introduce Hook classes - WorkflowViewsHooks.php
    John Voskuilen authored
    ad273e75
    History

    Customise for other Entity types than node

    When creating your own migrations, the file d7_workflow_transition.yml and d7_workflow_scheduled_transition.yml will need to be copied and customised per entity migration so that the following items make reference to the correct migrated values

    process:
      entity_type:
        -
          plugin: skip_on_value
          source: entity_type
          method: row
          not_equals: true
          value: node
      entity_id:
        -
          plugin: migration_lookup
          migration: d7_node
          source: nid
      revision_id:
        -
          plugin: migration_lookup
          migration: d7_node_revision
          source: revision_id
    migration_dependencies:
      required:
        - d7_node
        - d7_node_revision
      optional:
        - d7_node
        - d7_node_revision

    Here d7_node and d7_node_revision are to be replaced with the name of migration configuration for the other entity and node replaced with the name of the entity/

    process:
      entity_type:
        -
          plugin: skip_on_value
          source: entity_type
          method: row
          not_equals: true
          value: node
      entity_id:
        -
          plugin: migration_lookup
          migration: d7_node
          source: nid
    migration_dependencies:
      required:
        - d7_node
        - d7_user
        - d7_workflow_state
      optional:
        - d7_node
        - d7_user
        - d7_workflow_state