TelephoneField.php
Same filename in other branches
Namespace
Drupal\telephone\Plugin\migrate\field\d7File
-
core/
modules/ telephone/ src/ Plugin/ migrate/ field/ d7/ TelephoneField.php
View source
<?php
namespace Drupal\telephone\Plugin\migrate\field\d7;
use Drupal\migrate_drupal\Attribute\MigrateField;
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
class TelephoneField extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function getFieldWidgetMap() {
// The widget IDs are identical in Drupal 7 and 8, so we do not need any
// mapping.
return [];
}
/**
* {@inheritdoc}
*/
public function getFieldFormatterMap() {
return [
'text_plain' => 'string',
'telephone_link' => 'telephone_link',
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TelephoneField |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.