3 namespace Drupal\path\Plugin\migrate\process\d6;
5 use Drupal\migrate\MigrateExecutableInterface;
6 use Drupal\migrate\ProcessPluginBase;
7 use Drupal\migrate\Row;
8 use Drupal\Core\Language\LanguageInterface;
11 * Url alias language code process.
13 * @MigrateProcessPlugin(
14 * id = "d6_url_alias_language"
17 class UrlAliasLanguage extends ProcessPluginBase {
22 public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
23 $langcode = ($value === '') ? LanguageInterface::LANGCODE_NOT_SPECIFIED : $value;