class UrlAliasLanguage

Same name in other branches
  1. 9 core/modules/path/src/Plugin/migrate/process/d6/UrlAliasLanguage.php \Drupal\path\Plugin\migrate\process\d6\UrlAliasLanguage

Url alias language code process.

Plugin annotation


@MigrateProcessPlugin(
  id = "d6_url_alias_language"
)

Hierarchy

Expanded class hierarchy of UrlAliasLanguage

File

core/modules/path/src/Plugin/migrate/process/d6/UrlAliasLanguage.php, line 17

Namespace

Drupal\path\Plugin\migrate\process\d6
View source
class UrlAliasLanguage extends ProcessPluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
        $langcode = $value === '' ? LanguageInterface::LANGCODE_NOT_SPECIFIED : $value;
        return $langcode;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 6
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
ProcessPluginBase::multiple public function Indicates whether the returned value requires multiple handling. Overrides MigrateProcessInterface::multiple 3
UrlAliasLanguage::transform public function Performs the associated process. Overrides ProcessPluginBase::transform

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