UrlAlias.php

Same filename in this branch
  1. 8.9.x core/modules/path/src/Plugin/migrate/destination/UrlAlias.php
  2. 8.9.x core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
Same filename in other branches
  1. 9 core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
  2. 9 core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php
  3. 10 core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
  4. 10 core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php
  5. 11.x core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
  6. 11.x core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php

Namespace

Drupal\path\Plugin\migrate\source\d7

File

core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php

View source
<?php

namespace Drupal\path\Plugin\migrate\source\d7;

use Drupal\path\Plugin\migrate\source\UrlAliasBase;

/**
 * URL aliases source from database.
 *
 * @MigrateSource(
 *   id = "d7_url_alias",
 *   source_module = "path"
 * )
 */
class UrlAlias extends UrlAliasBase {
    
    /**
     * {@inheritdoc}
     */
    public function fields() {
        $fields = parent::fields();
        $fields['source'] = $this->t('The internal system path.');
        $fields['alias'] = $this->t('The path alias.');
        return $fields;
    }

}

Classes

Title Deprecated Summary
UrlAlias URL aliases source from database.

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