- π©πͺGermany Duwid
Module alters theme registry to override field-template, instead of implementing custom theme via theme hook. Module should implement its own theme hook.
Temporary workaround: Override theme registry alter hook with custom path:
/** * Implements hook_theme_registry_alter(). */ function my_module_theme_registry_alter(&$theme_registry) { $theme_registry['field__flipbook__flipbook__flipbook']['path'] = \Drupal::theme()->getActiveTheme()->getPath() . '/templates'; }