comparison modules/contrib/migrate_plus/src/Plugin/migrate/process/SkipOnValue.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
23 * - method: What to do if the input value equals to value given in 23 * - method: What to do if the input value equals to value given in
24 * configuration key value. Possible values: 24 * configuration key value. Possible values:
25 * - row: Skips the entire row. 25 * - row: Skips the entire row.
26 * - process: Prevents further processing of the input property 26 * - process: Prevents further processing of the input property
27 * 27 *
28 * @codingStandardsIgnoreStart
29 *
28 * Examples: 30 * Examples:
29 * 31 *
30 * Example usage with minimal configuration: 32 * Example usage with minimal configuration:
31 * @code 33 * @code
32 * type: 34 * type:
33 * plugin: skip_on_value 35 * plugin: skip_on_value
34 * source: content_type 36 * source: content_type
35 * method: process 37 * method: process
36 * value: blog 38 * value: blog
37 * @endcode 39 * @endcode
38 *
39 * The above example will skip further processing of the input property if 40 * The above example will skip further processing of the input property if
40 * the content_type source field equals "blog". 41 * the content_type source field equals "blog".
41 * 42 *
42 * Example usage with full configuration: 43 * Example usage with full configuration:
43 * @code 44 * @code
48 * method: row 49 * method: row
49 * value: 50 * value:
50 * - article 51 * - article
51 * - testimonial 52 * - testimonial
52 * @endcode 53 * @endcode
53 *
54 * The above example will skip processing any row for which the source row's 54 * The above example will skip processing any row for which the source row's
55 * content type field is not "article" or "testimonial". 55 * content type field is not "article" or "testimonial".
56 *
57 * @codingStandardsIgnoreEnd
56 */ 58 */
57 class SkipOnValue extends ProcessPluginBase { 59 class SkipOnValue extends ProcessPluginBase {
58 60
59 /** 61 /**
60 * {@inheritdoc} 62 * {@inheritdoc}