TextSummaryTestHooks.php
Same filename and directory in other branches
Namespace
Drupal\text_summary_test\HookFile
-
core/
modules/ text/ tests/ modules/ text_summary_test/ src/ Hook/ TextSummaryTestHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\text_summary_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
use Drupal\Core\State\StateInterface;
/**
* Hook implementations for text_summary_test.
*/
class TextSummaryTestHooks {
public function __construct(protected readonly StateInterface $state) {
}
/**
* Implements hook_page_attachments_alter().
*/
public function pageAttachmentsAlter(array &$attachments) : void {
$attachments['#attached']['library'][] = 'text_summary_test/text-summary-override';
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| TextSummaryTestHooks | Hook implementations for text_summary_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.