Theme hook not found I have a custom module that implements a webform handler. I'm seeing this error in my Watchdog log when I navigate to admin/structure/webform/manage/myform/handlers:


  Theme hook webform_handler_myform_form_handler_summary not found.


I must have missed something when creating my module, but what? What needs to be added? Searches for "webform handler theme hook" haven't been fruitful.
As seen in webform_example_handler

You need to add:

mymodule/mymodule.module

&lt;?php

/**
 * @file
 * Provides a custom webform handler.
 */

/**
 * Implements hook_theme().
 */
function mymodule_theme() {
  return [
    'webform_handler_myform_form_handler_summary' =&gt; [
      'variables' =&gt; ['settings' =&gt; NULL, 'handler' =&gt; []],
    ],
  ];
}


mymodule/templates/webform-handler-myform-form-handler-summary.html.twig

{#
/**
 * @file
 * Default theme implementation for a summary of an example webform handler.
 *
 * Available variables:
 * - settings: The current configuration for this email handler:
 *   - message: The message.
 *   - debug: Debugging flag.
 * - handler: The handler information, including:
 *   - id: The handler plugin id.
 *   - handler_id: The handler id.
 *   - label: The handler label.
 *   - description: The handler description.
 *
 * @ingroup themeable
 */
#}
{% if settings.debug %}&lt;b class="color-error"&gt;{{ 'Debugging is enabled'|t }}&lt;/b&gt;&lt;br /&gt;{% endif %}
&lt;b&gt;Message:&lt;/b&gt; {{ settings.message }}


Clear/flush the cache so your new hook &amp; template file gets picked up.