"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/modules/migrate/src/Plugin/migrate/process/DedupeEntity.php" (26 Nov 2020, 906 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) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "DedupeEntity.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Drupal\migrate\Plugin\migrate\process;
    4 
    5 @trigger_error('The ' . __NAMESPACE__ . ' \DedupeEntity is deprecated in
    6 Drupal 8.4.x and will be removed before Drupal 9.0.0. Instead, use ' . __NAMESPACE__ . ' \MakeUniqueEntityField', E_USER_DEPRECATED);
    7 
    8 /**
    9  * Ensures value is not duplicated against an entity field.
   10  *
   11  * If the 'migrated' configuration value is true, an entity will only be
   12  * considered a duplicate if it was migrated by the current migration.
   13  *
   14  * @link https://www.drupal.org/node/2135325 Online handbook documentation for dedupe_entity process plugin @endlink
   15  *
   16  * @MigrateProcessPlugin(
   17  *   id = "dedupe_entity"
   18  * )
   19  *
   20  * @deprecated in drupal:8.4.0 and is removed from drupal:9.0.0. Use
   21  *   \Drupal\migrate\Plugin\migrate\process\MakeUniqueEntityField instead.
   22  *
   23  * @see https://www.drupal.org/node/2873762
   24  */
   25 class DedupeEntity extends MakeUniqueEntityField {}