filter_test.module 634 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Test module for Filter module hooks and functions not used in core.
  5. */
  6. /**
  7. * Implements hook_ENTITY_TYPE_insert().
  8. */
  9. function filter_test_filter_format_insert($format) {
  10. \Drupal::messenger()->addStatus('hook_filter_format_insert invoked.');
  11. }
  12. /**
  13. * Implements hook_ENTITY_TYPE_update().
  14. */
  15. function filter_test_filter_format_update($format) {
  16. \Drupal::messenger()->addStatus('hook_filter_format_update invoked.');
  17. }
  18. /**
  19. * Implements hook_filter_format_disable().
  20. */
  21. function filter_test_filter_format_disable($format) {
  22. \Drupal::messenger()->addStatus('hook_filter_format_disable invoked.');
  23. }