function LinkField::alterFieldInstanceMigration

Same name in other branches
  1. 9 core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::alterFieldInstanceMigration()
  2. 8.9.x core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::alterFieldInstanceMigration()
  3. 8.9.x core/modules/link/src/Plugin/migrate/cckfield/d7/LinkField.php \Drupal\link\Plugin\migrate\cckfield\d7\LinkField::alterFieldInstanceMigration()
  4. 11.x core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::alterFieldInstanceMigration()

Overrides FieldPluginBase::alterFieldInstanceMigration

File

core/modules/link/src/Plugin/migrate/field/d7/LinkField.php, line 57

Class

LinkField
MigrateField Plugin for Drupal 7 link fields.

Namespace

Drupal\link\Plugin\migrate\field\d7

Code

public function alterFieldInstanceMigration(MigrationInterface $migration) {
    $process = [
        'plugin' => 'static_map',
        'source' => 'settings/title',
        'bypass' => TRUE,
        'map' => [
            'disabled' => DRUPAL_DISABLED,
            'optional' => DRUPAL_OPTIONAL,
            'required' => DRUPAL_REQUIRED,
        ],
    ];
    $migration->mergeProcessOfProperty('settings/title', $process);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.