FieldInstanceOptionTranslation.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php
- 9 core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceOptionTranslation.php
- 9 core/modules/field/src/Plugin/migrate/process/d7/FieldInstanceOptionTranslation.php
- 10 core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php
- 10 core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceOptionTranslation.php
- 10 core/modules/field/src/Plugin/migrate/process/d7/FieldInstanceOptionTranslation.php
- 11.x core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php
- 11.x core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceOptionTranslation.php
- 11.x core/modules/field/src/Plugin/migrate/process/d7/FieldInstanceOptionTranslation.php
Namespace
Drupal\field\Plugin\migrate\source\d6File
-
core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldInstanceOptionTranslation.php
View source
<?php
namespace Drupal\field\Plugin\migrate\source\d6;
/**
* Gets field instance option label translations.
*
* @MigrateSource(
* id = "d6_field_instance_option_translation",
* source_module = "i18ncck"
* )
*/
class FieldInstanceOptionTranslation extends FieldOptionTranslation {
/**
* {@inheritdoc}
*/
public function query() {
$query = parent::query();
$query->join('content_node_field_instance', 'cnfi', 'cnf.field_name = cnfi.field_name');
$query->addField('cnfi', 'type_name');
return $query;
}
/**
* {@inheritdoc}
*/
public function fields() {
$fields = [
'type_name' => $this->t('Type (article, page, ....)'),
];
return parent::fields() + $fields;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FieldInstanceOptionTranslation | Gets field instance option label translations. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.