function registration_link_install in Registration Link 8
Implements hook_install().
File
- ./
registration_link.install, line 8
Code
function registration_link_install() {
MenuLinkContent::create([
'title' => 'Register an Account',
'link' => [
'uri' => 'route:registration_link.register',
],
'menu_name' => 'account',
'weight' => 10,
])
->save();
}