TargetBundle.php in Drupal 10
File
core/modules/taxonomy/src/Plugin/migrate/process/TargetBundle.php
View source
<?php
namespace Drupal\taxonomy\Plugin\migrate\process;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
class TargetBundle extends ProcessPluginBase {
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
$target_bundle = [];
$vid = $row
->get('@_vid');
$target_bundle[$vid] = $vid;
return $target_bundle;
}
}
Classes
Name |
Description |
TargetBundle |
Converts a Drupal 6 vocabulary ID to a target bundle array. |