function FieldPluginBase::getFieldFormatterType

Same name and namespace in other branches
  1. 8.9.x 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()
  3. 11.x core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::getFieldFormatterType()

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 51

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.