filter_test.module

Same filename in other branches
  1. 7.x modules/simpletest/tests/filter_test.module
  2. 9 core/modules/filter/tests/filter_test/filter_test.module
  3. 8.9.x core/modules/filter/tests/filter_test/filter_test.module
  4. 11.x core/modules/filter/tests/filter_test/filter_test.module

Test module for Filter module hooks and functions not used in core.

File

core/modules/filter/tests/filter_test/filter_test.module

View 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

Title Deprecated Summary
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().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.