El bloque personalizado Drupal 8 (módulo) crea un archivo de plantilla de ramita

Tengo un módulo personalizado que crea un bloque personalizado que tiene elementos de campo.

Todo esto funciona bien, pero necesito un tema para este bloque. Revisé las otras publicaciones aquí y lo intenté sin suerte.

He habilitado la depuración de ramitas y tengo sugerencias de temas. Aún sin suerte.

Alguien puede hacerme el favor de indicarme la dirección correcta.

Esto es lo que tengo hasta ahora:

my_module / my_module.module

// nothing related in here

my_module / src / Plugin / Block / myModuleBlock.php

<?php

namespace Drupal\my_module\Plugin\Block;

use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormStateInterface;

/**
 * Provides a 'ModuleBlock' block.
 *
 * @Block(
 *  id = "module_block",
 *  admin_label = @Translation("My Module"),
 * )
 */
class ModuleBlock extends BlockBase {

  public function blockForm($form, FormStateInterface $form_state) {
    $form['test'] = array(
      '#type' => 'select',
      '#title' => $this->t('test'),
      '#description' => $this->t('test list'),
      '#options' => array(
        'Test' => $this->t('Test'), 
      ),
      '#default_value' => isset($this->configuration['test']) ? $this->configuration['test'] : 'Test',
      '#size' => 0,
      '#weight' => '10',
      '#required' => TRUE,
    );    
    return $form;
  }

  /**
   * {@inheritdoc}
   */
  public function blockSubmit($form, FormStateInterface $form_state) {
    $this->configuration['test'] = $form_state->getValue('test');
  }

  /**
   * {@inheritdoc}
   */
  public function build() {
    $build = [];
    $build['module_block_test']['#markup'] = '<p>' . $this->configuration['test'] . '</p>';
    return $build;
  }


}

my_module / templates / block - my-module.html.twig // según lo sugerido por twig debug

<h1>This is a test</h1>
<div id="test-widget">{{ content }}</div>

También debo tener en cuenta que en mi my_theme.theme tengo esto pero no creo que sea relevante:

// Add content type suggestions.
function my_theme_theme_suggestions_page_alter(array &$suggestions, array $variables) {
  if ($node = \Drupal::request()->attributes->get('node')) {
    array_splice($suggestions, 1, 0, 'page__node__' . $node->getType());
  }
}

En cuanto a lo que he intentado es esto:

public function build() {
    return array(
      '#theme' => 'block--my-module'
    );
}

Pero aún así no va.

Cualquier ayuda aquí es muy apreciada.

ACTUALIZACIÓN: Así que lo puse a trabajar pero todavía necesito ayuda. Moví la plantillablock--my-module.html.twig a mi directorio de temas y funcionó.

¿Cómo hago para que funcione en el directorio de mi módulo?

Respuestas a la pregunta(2)

Su respuesta a la pregunta