How can get access to field's data of plugin block in twig template? how can I get access to fields data (Variables) of custom plugin block in twig template?
this block has been created by a module (Not a custom block type) and has its own twig template.
in below is shown structure of my module directory:

my_module
  ├ src
  | └ Plugin
  |    └ Block
  |       └ MyBlock.php
  ├ templates
  |  └ block--my-module.html.twig
  ├ my_module.info.yml
  └ my_module.module


MyBlock.php:

&lt;?php

namespace Drupal\my_modules\Plugin\Block;

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


/**
 * @Block(
 *   id = "my_block",
 *   admin_label = @Translation("My Block"),
 *   category = @Translation("My Block")
 * )
 */
class MyBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function blockForm($form, FormStateInterface $form_state) {
    // Add a form field to the existing block configuration form.

  $form['block_LinkA_url'] = array(
    '#type' =&gt; 'url',
    '#title' =&gt; t('Link A:'),
    '#size' =&gt; 60,
  );
  $form['block_LinkB_url'] = array(
    '#type' =&gt; 'url',
    '#title' =&gt; t('Link B:'),
    '#size' =&gt; 60,
  );
    return $form;
  }

  /**
   * {@inheritdoc}
   */
  public function blockSubmit($form, FormStateInterface $form_state) {
    // Save our custom settings when the form is submitted.
    $this-&gt;configuration['LinkA_url'] = $form_state-&gt;getValue('block_LinkA_url');
    $this-&gt;configuration['LinkB_url'] = $form_state-&gt;getValue('block_LinkB_url');
  }

}


I'm trying to get access to for eg LinkA_url Variable in block--my-module.html.twig with something like below code:

&lt;div&gt;
    {% block content %}
      {{ content.LinkA_url.value }}
    {% endblock %}
&lt;/div&gt;


But whatsoever I try nothing could not be displayed , I would be happy to hear what the problem is.
Thanks for any help.
you can use markup render arrays like this:

 public function build() {
    $build = [];

    $build['LinkA_url'] = ['#markup' =&gt; $this-&gt;configuration['LinkA_url']];
    $build['LinkB_url'] = ['#markup' =&gt; $this-&gt;configuration['LinkB_url']];

    return $build;
  }


Then in your twig:

  &lt;p&gt;&lt;a href="{{ content.LinkA_url }}"&gt;link 1&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;&lt;a href="{{ content.LinkB_url }}"&gt;link 2&lt;/a&gt;&lt;/p&gt;


then add hook_theme in your .module file:

/**
 * Implements hook_theme().
 */
function my_module_theme() {
  return array(
    'block__my_module' =&gt; array(
      'base hook' =&gt; 'block'
    ),
  );
}


Otherwise, it won't look in your module's templates folder.