<?php

namespace Drupal\restaurant\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
* Provides a block with the restauranthq admin menu
*
* @Block(
*   id = "restaurant_menu",
*   admin_label = @Translation("RestaurantHQ Menu"),
* )
*/
class MenuBlock extends BlockBase
{

  public function build()
  {
    //$db = \Drupal::database();

    $str = '<h1>Hello world</h1>';

    return [
      '#type' => 'markup',
      '#markup' => $this->t($str),
    ];
  }
}