filter_test.module in Drupal 9
Same filename and directory in other branches
Test module for Filter module hooks and functions not used in core.
File
core/modules/filter/tests/filter_test/filter_test.moduleView source
<?php
/**
* @file
* Test module for Filter module hooks and functions not used in core.
*/
/**
* Implements hook_ENTITY_TYPE_insert().
*/
function filter_test_filter_format_insert($format) {
\Drupal::messenger()
->addStatus('hook_filter_format_insert invoked.');
}
/**
* Implements hook_ENTITY_TYPE_update().
*/
function filter_test_filter_format_update($format) {
\Drupal::messenger()
->addStatus('hook_filter_format_update invoked.');
}
/**
* Implements hook_filter_format_disable().
*/
function filter_test_filter_format_disable($format) {
\Drupal::messenger()
->addStatus('hook_filter_format_disable invoked.');
}
Functions
Name![]() |
Description |
---|---|
filter_test_filter_format_disable | Implements hook_filter_format_disable(). |
filter_test_filter_format_insert | Implements hook_ENTITY_TYPE_insert(). |
filter_test_filter_format_update | Implements hook_ENTITY_TYPE_update(). |