culturefeed_agenda-1.0.x-dev/culturefeed_agenda.install
culturefeed_agenda.install
<?php
/**
* @file
* Install and update file.
*/
/**
* Write url aliases for the translations.
*/
function culturefeed_agenda_install() {
$path_alias = \Drupal::entityTypeManager()->getStorage('path_alias')->create([
'path' => '/agenda/search',
'alias' => '/agenda/zoeken',
'langcode' => 'nl',
]);
$path_alias->save();
}
