You are here

public function FieldPluginBase::getFieldFormatterType 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::getFieldFormatterType()
  2. 10 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldFormatterType()

Get the field formatter type from the source.

Parameters

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

Return value

string The field formatter type.

Overrides MigrateFieldInterface::getFieldFormatterType

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

File

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

Class

FieldPluginBase
The base class for all field plugins.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field

Code

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