ImageField.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/image/src/Plugin/migrate/field/d6/ImageField.php
- 9 core/modules/image/src/Plugin/migrate/field/d7/ImageField.php
- 8.9.x core/modules/file/src/Plugin/migrate/field/d6/ImageField.php
- 8.9.x core/modules/file/src/Plugin/migrate/field/d7/ImageField.php
- 8.9.x core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php
- 8.9.x core/modules/image/src/Plugin/migrate/field/d6/ImageField.php
- 8.9.x core/modules/image/src/Plugin/migrate/field/d7/ImageField.php
- 8.9.x core/modules/image/src/Plugin/migrate/cckfield/d7/ImageField.php
- 11.x core/modules/image/src/Plugin/migrate/field/d6/ImageField.php
- 11.x core/modules/image/src/Plugin/migrate/field/d7/ImageField.php
Namespace
Drupal\image\Plugin\migrate\field\d7File
-
core/
modules/ image/ src/ Plugin/ migrate/ field/ d7/ ImageField.php
View source
<?php
namespace Drupal\image\Plugin\migrate\field\d7;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_drupal\Attribute\MigrateField;
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
class ImageField extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function getFieldWidgetMap() {
return [
'image' => 'image_default',
'image_miw' => 'image_image',
];
}
/**
* {@inheritdoc}
*/
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'target_id' => 'fid',
'alt' => 'alt',
'title' => 'title',
'width' => 'width',
'height' => 'height',
],
];
$migration->mergeProcessOfProperty($field_name, $process);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ImageField |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.