public function FieldDiscoveryTestClass::getFieldPlugin in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::getFieldPlugin()
Returns the appropriate field plugin for a given field type.
Parameters
string $field_type: The field type.
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to retrieve the plugin for.
Return value
\Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface|\Drupal\migrate_drupal\Plugin\MigrateFieldInterface|bool The appropriate field or cck plugin to process this field type.
Throws
\Drupal\Component\Plugin\Exception\PluginException
\InvalidArgumentException
Overrides FieldDiscovery::getFieldPlugin
File
- core/
modules/ migrate_drupal/ tests/ modules/ field_discovery_test/ src/ FieldDiscoveryTestClass.php, line 82
Class
- FieldDiscoveryTestClass
- A test class to expose protected methods.
Namespace
Drupal\field_discovery_testCode
public function getFieldPlugin($field_type, MigrationInterface $migration) {
return parent::getFieldPlugin($field_type, $migration);
}