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"
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 * @deprecated in Drupal 8.3.x, to be removed before Drupal 9.0.x. Use
24 * \Drupal\link\Plugin\migrate\field\d7\LinkField instead.
26 * @see https://www.drupal.org/node/2751897
28 class LinkField extends D6LinkField {
33 public function getFieldWidgetMap() {
34 // By default, use the plugin ID for the widget types.
35 return ['link_field' => 'link_default'];
41 public function processFieldInstance(MigrationInterface $migration) {
43 'plugin' => 'static_map',
44 'source' => 'settings/title',
47 'disabled' => DRUPAL_DISABLED,
48 'optional' => DRUPAL_OPTIONAL,
49 'required' => DRUPAL_REQUIRED,
52 $migration->mergeProcessOfProperty('settings/title', $process);