class UrlAlias

Same name in this branch
  1. 9 core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php \Drupal\path\Plugin\migrate\source\d7\UrlAlias
Same name and namespace in other branches
  1. 11.x core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php \Drupal\path\Plugin\migrate\source\d6\UrlAlias
  2. 11.x core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php \Drupal\path\Plugin\migrate\source\d7\UrlAlias

Drupal 6 URL aliases source from database.

For available configuration keys, refer to the parent classes.

Plugin annotation


@MigrateSource(
  id = "d6_url_alias",
  source_module = "path"
)

Hierarchy

Expanded class hierarchy of UrlAlias

See also

\Drupal\migrate\Plugin\migrate\source\SqlBase

\Drupal\migrate\Plugin\migrate\source\SourcePluginBase

3 string references to 'UrlAlias'
AliasPathProcessorTest::providerTestProcessOutbound in core/modules/path_alias/tests/src/Unit/PathProcessor/AliasPathProcessorTest.php
AliasPathProcessorTest::testProcessInbound in core/modules/path_alias/tests/src/Unit/PathProcessor/AliasPathProcessorTest.php
Tests the processInbound method.
AliasPathProcessorTest::testProcessOutbound in core/modules/path_alias/tests/src/Unit/PathProcessor/AliasPathProcessorTest.php
@covers ::processOutbound[[api-linebreak]]

File

core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php, line 20

Namespace

Drupal\path\Plugin\migrate\source\d6
View source
class UrlAlias extends UrlAliasBase {
  
  /**
   * {@inheritdoc}
   */
  public function fields() {
    $fields = parent::fields();
    $fields['src'] = $this->t('The internal system path.');
    $fields['dst'] = $this->t('The path alias.');
    return $fields;
  }

}

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