bt_faq-8.x-1.x-dev/bt_faq.install
bt_faq.install
<?php
/**
* @file
* The install file of bt_faq module.
*/
/**
* Implements hook_install().
*/
function bt_faq_install() {
// Add path alias.
\Drupal::service('path.alias_storage')->save('/faq-page', '/frequent-answer', 'en');
\Drupal::service('path.alias_storage')->save('/app/website/content/create/faq', '/app/website/frequent-answer/create/question', 'en');
}
