3 namespace Drupal\link\Plugin\migrate\field\d7;
5 use Drupal\link\Plugin\migrate\field\d6\LinkField as D6LinkField;
6 use Drupal\migrate\Plugin\MigrationInterface;
13 * "link_field" = "link"
15 * source_module = "link",
16 * destination_module = "link"
19 * This plugin provides the exact same functionality as the Drupal 6 "link"
20 * plugin with the exception that the plugin ID "link_field" is used in the
23 class LinkField extends D6LinkField {
28 public function getFieldFormatterMap() {
30 'link_default' => 'link',
37 public function getFieldWidgetMap() {
38 // By default, use the plugin ID for the widget types.
39 return ['link_field' => 'link_default'];
45 public function processFieldInstance(MigrationInterface $migration) {
47 'plugin' => 'static_map',
48 'source' => 'settings/title',
51 'disabled' => DRUPAL_DISABLED,
52 'optional' => DRUPAL_OPTIONAL,
53 'required' => DRUPAL_REQUIRED,
56 $migration->mergeProcessOfProperty('settings/title', $process);