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"
17 * This plugin provides the exact same functionality as the Drupal 6 "link"
18 * plugin with the exception that the plugin ID "link_field" is used in the
21 class LinkField extends D6LinkField {
26 public function getFieldWidgetMap() {
27 // By default, use the plugin ID for the widget types.
28 return ['link_field' => 'link_default'];
34 public function processFieldInstance(MigrationInterface $migration) {
36 'plugin' => 'static_map',
37 'source' => 'settings/title',
40 'disabled' => DRUPAL_DISABLED,
41 'optional' => DRUPAL_OPTIONAL,
42 'required' => DRUPAL_REQUIRED,
45 $migration->mergeProcessOfProperty('settings/title', $process);