You are here

registration_link.install in Registration Link 8

File

registration_link.install
View 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

Namesort descending Description
registration_link_install Implements hook_install().