Commit 9d490c0f authored by akalam's avatar akalam

missing type on .info.yml; missing parametter on hook_tokens

parent 0fa6a478
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
......@@ -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() {
}
/**
* Implementation of hook_tokens().
* Implements 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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment