<?php

namespace Drupal\{{ machine_name }}\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
 * Provides an example block.
 *
 * @Block(
 *   id = "{{ machine_name }}_example",
 *   admin_label = @Translation("Example"),
 *   category = @Translation("{{ name }}")
 * )
 */
class ExampleBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    $build['content'] = [
      '#markup' => $this->t('It works!'),
    ];
    return $build;
  }

}
