Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 8 |
| ProfileFieldSettings | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 8 |
| transform | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 8 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\user\Plugin\migrate\process\ProfileFieldSettings. | |
| */ | |
| namespace Drupal\user\Plugin\migrate\process; | |
| use Drupal\migrate\MigrateExecutableInterface; | |
| use Drupal\migrate\ProcessPluginBase; | |
| use Drupal\migrate\Row; | |
| /** | |
| * @MigrateProcessPlugin( | |
| * id = "profile_field_settings" | |
| * ) | |
| */ | |
| class ProfileFieldSettings extends ProcessPluginBase { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function transform($type, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { | |
| $settings = array(); | |
| switch ($type) { | |
| case 'date': | |
| $settings['datetime_type'] = 'date'; | |
| break; | |
| } | |
| return $settings; | |
| } | |
| } |