Chris@0: 'links__comment__mymodule', Chris@0: '#attributes' => ['class' => ['links', 'inline']], Chris@0: '#links' => [ Chris@0: 'comment-report' => [ Chris@0: 'title' => t('Report'), Chris@0: 'url' => Url::fromRoute('comment_test.report', ['comment' => $entity->id()], ['query' => ['token' => \Drupal::getContainer()->get('csrf_token')->get("comment/{$entity->id()}/report")]]), Chris@0: ], Chris@0: ], Chris@0: ]; Chris@0: } Chris@0: Chris@0: /** Chris@0: * @} End of "addtogroup hooks". Chris@0: */