Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a simple migrate process plugin whose only purpose is to negate whatever value is sent over to it.
This is useful for situations where we want to save the opposite of what the source is.
For example, if our source content has a bool value of is_deleted
, which roughly translates to Drupal's status
(published) field, we actually want the content to be unpublished (0 or FALSE) when the source is marked as deleted (1 or TRUE).
Then all we'd need to do is:
...
process:
status:
plugin: negate
source: is_deleted
...
And it would work as expected.
Supporting organizations:
Initial development.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Developer Tools, Import and Export
- 46 sites report using this module
- Created by gueguerreiro on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
1.0.2
released 29 July 2022
Works with Drupal: ^8 || ^9 || ^10
✓ Recommended by the project’s maintainer.
Drupal 10 support.
Install: