private function EntityAliasTypeBase::getTableInfo in Pathauto 8
Returns information about the path alias table and field names.
Return value
array An array with the following structure:
- table: the name of the table where path aliases are stored;
- fields: an array containing the mapping of path alias properties to their table column names.
File
- src/
Plugin/ pathauto/ AliasType/ EntityAliasTypeBase.php, line 351
Class
- EntityAliasTypeBase
- A pathauto alias type plugin for entities with canonical links.
Namespace
Drupal\pathauto\Plugin\pathauto\AliasTypeCode
private function getTableInfo() {
if (version_compare(\Drupal::VERSION, '8.8', '<')) {
return [
'table' => 'url_alias',
'fields' => [
'id' => 'pid',
'path' => 'source',
'alias' => 'alias',
'langcode' => 'langcode',
],
];
}
else {
return [
'table' => 'path_alias',
'fields' => [
'id' => 'id',
'path' => 'path',
'alias' => 'alias',
'langcode' => 'langcode',
],
];
}
}