Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
node_authlink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
node_authlink
Commits
9d490c0f
Commit
9d490c0f
authored
Aug 22, 2018
by
akalam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing type on .info.yml; missing parametter on hook_tokens
parent
0fa6a478
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
node_authlink.info.yml
node_authlink.info.yml
+2
-2
node_authlink.module
node_authlink.module
+3
-2
No files found.
node_authlink.info.yml
View file @
9d490c0f
type
:
module
name
:
Node authorize link
description
:
Generates link for view, edit, or delete node without login.
version
:
8.x-1.0
description
:
'
Generates
link
for
view,
edit,
or
delete
node
without
login.'
core
:
8.x
node_authlink.module
View file @
9d490c0f
...
...
@@ -3,6 +3,7 @@
use
Drupal\Component\Utility\Crypt
;
use
Drupal\Core\Access\AccessResult
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Render\BubbleableMetadata
;
use
Drupal\Core\Session\AccountInterface
;
use
Drupal\Core\Url
;
use
Drupal\node\Entity\Node
;
...
...
@@ -346,9 +347,9 @@ function node_authlink_token_info() {
}
/**
* Implement
ation of
hook_tokens().
* Implement
s
hook_tokens().
*/
function
node_authlink_tokens
(
$type
,
$tokens
,
array
$data
=
[],
array
$options
=
[])
{
function
node_authlink_tokens
(
$type
,
$tokens
,
array
$data
=
[],
array
$options
=
[]
,
BubbleableMetadata
$bubbleable_metadata
)
{
if
(
$type
!=
'node'
)
{
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment