diatem-net/nodekey
Composer 安装命令:
composer require diatem-net/nodekey
包简介
Generates a unique key for every node.
README 文档
README
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.
REQUIREMENTS
Drupal 9.x.
INSTALLATION
Install this module as usual. Please see https://www.drupal.org/docs/extending-drupal/installing-modules
CONFIGURATION
Global module settings can be found at admin/config/nodekey.
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).
统计信息
- 总下载量: 158
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-03-05