Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

TelephoneField.php

Namespace

Drupal\telephone\Plugin\migrate\field\d7

File

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal