3 namespace Drupal\link\Plugin\migrate\cckfield\d7;
5 @trigger_error('LinkField is deprecated in Drupal 8.3.x and will be be removed before Drupal 9.0.x. Use \Drupal\link\Plugin\migrate\field\d7\LinkField instead.', E_USER_DEPRECATED);
7 use Drupal\link\Plugin\migrate\cckfield\LinkField as D6LinkField;
8 use Drupal\migrate\Plugin\MigrationInterface;
15 * "link_field" = "link"
17 * source_module = "link",
18 * destination_module = "link"
21 * This plugin provides the exact same functionality as the Drupal 6 "link"
22 * plugin with the exception that the plugin ID "link_field" is used in the
25 * @deprecated in Drupal 8.3.x, to be removed before Drupal 9.0.x. Use
26 * \Drupal\link\Plugin\migrate\field\d7\LinkField instead.
28 * @see https://www.drupal.org/node/2751897
30 class LinkField extends D6LinkField {
35 public function getFieldWidgetMap() {
36 // By default, use the plugin ID for the widget types.
37 return ['link_field' => 'link_default'];
43 public function alterFieldInstanceMigration(MigrationInterface $migration) {
45 'plugin' => 'static_map',
46 'source' => 'settings/title',
49 'disabled' => DRUPAL_DISABLED,
50 'optional' => DRUPAL_OPTIONAL,
51 'required' => DRUPAL_REQUIRED,
54 $migration->mergeProcessOfProperty('settings/title', $process);