FieldIdGenerator.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\field\Plugin\migrate\process\d6File
core/modules/field/src/Plugin/migrate/process/d6/FieldIdGenerator.phpView source
<?php
/**
* @file
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldIdGenerator.
*/
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
/**
* Generate the file name for field config entities.
*
* @MigrateProcessPlugin(
* id = "field_id_generator"
* )
*/
class FieldIdGenerator extends ProcessPluginBase {
/**
* {@inheritdoc}
*/
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
return $value[0] . "." . $value[1];
}
}
Classes
Name | Description |
---|---|
FieldIdGenerator | Generate the file name for field config entities. |