registration_link.install in Registration Link 8
File
registration_link.installView source
<?php
use Drupal\menu_link_content\Entity\MenuLinkContent;
/**
* Implements hook_install().
*/
function registration_link_install() {
MenuLinkContent::create([
'title' => 'Register an Account',
'link' => [
'uri' => 'route:registration_link.register',
],
'menu_name' => 'account',
'weight' => 10,
])
->save();
}
Functions
Name | Description |
---|---|
registration_link_install | Implements hook_install(). |