ProfileFieldSettings.php

Namespace

Drupal\user\Plugin\migrate\process

File

core/modules/user/src/Plugin/migrate/process/ProfileFieldSettings.php

View source
<?php

namespace Drupal\user\Plugin\migrate\process;

use Drupal\migrate\Attribute\MigrateProcess;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
 * Determines the settings for the profile field.
 *
 * @deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no
 *   replacement.
 *
 * @see https://www.drupal.org/node/3533560
 */
class ProfileFieldSettings extends ProcessPluginBase {
  public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    @trigger_error(__CLASS__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533560', E_USER_DEPRECATED);
    parent::__construct($configuration, $plugin_id, $plugin_definition);
  }
  
  /**
   * {@inheritdoc}
   */
  public function transform($type, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    $settings = [];
    switch ($type) {
      case 'date':
        $settings['datetime_type'] = 'date';
        break;

    }
    return $settings;
  }

}

Classes

Title Deprecated Summary
ProfileFieldSettings

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

Determines the settings for the profile field.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.