You are here

public function FieldPluginBase::getFieldWidgetType in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetType()
  2. 10 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldWidgetType()

Get the field widget type from the source.

Parameters

\Drupal\migrate\Row $row: The field being migrated.

Return value

string The field widget type.

Overrides MigrateFieldInterface::getFieldWidgetType

1 method overrides FieldPluginBase::getFieldWidgetType()
TextField::getFieldWidgetType in core/modules/text/src/Plugin/migrate/field/d7/TextField.php
Get the field widget type from the source.

File

core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php, line 107

Class

FieldPluginBase
The base class for all field plugins.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field

Code

public function getFieldWidgetType(Row $row) {
  return $row
    ->getSourceProperty('widget/type');
}