You are here

public function FieldDiscoveryTestClass::getFieldPlugin in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::getFieldPlugin()
  2. 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\MigrateFieldInterface|bool The appropriate field 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_test

Code

public function getFieldPlugin($field_type, MigrationInterface $migration) {
  return parent::getFieldPlugin($field_type, $migration);
}