2017 © Pedro Peláez
 

drupal-module nodekey

Generates a unique key for every node.

image

diatem-net/nodekey

Generates a unique key for every node.

  • Monday, March 5, 2018
  • by zessx
  • Repository
  • 3 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Node Key

The Node Key module generate a unique key for every node.
This key can be used to load an node without relying on its id., (*1)

REQUIREMENTS

Drupal 9.x., (*2)

INSTALLATION

Install this module as usual. Please see https://www.drupal.org/docs/extending-drupal/installing-modules, (*3)

CONFIGURATION

Global module settings can be found at admin/config/nodekey., (*4)

USAGE

// Get the url of a node
$url = NodeKeyEntity::url('my_node_key');

// Get a node entity
$node = NodeKeyEntity::load('my_node_key');

// Create a new key
$nodekey = NodeKeyEntity::create($node);

// theme suggestions
page--'my_node_key'
node--'my_node_key'

You can find the list of all created keys at /admin/config/nodekey/list.
This module currently does not allow edition, but feel free to edit the node_nodekey table in your database (just make sure taht there are no duplicates)., (*5)

The Versions

05/03 2018

dev-master

9999999-dev

Generates a unique key for every node.

  Sources   Download

GPL-3.0+

The Requires

 

by Samuel Marchal
by Jean-Luc Fritz

05/03 2018

1.0

1.0.0.0

Generates a unique key for every node.

  Sources   Download

GPL-3.0+

The Requires

 

by Samuel Marchal
by Jean-Luc Fritz