<?php

/**
 * @file
 * Contains \Drupal\qd30map\Plugin\Block\NodeMapBlock.
 */

namespace Drupal\qd30map\Plugin\Block;

use Drupal\Core\Block\BlockBase;

/**
* Provides mapUI Block.
*
* @Block(
* id = "nodemapblock",
* admin_label = @Translation("Node Map Block"),
* category = @Translation("Blocks")
* )
*/

class NodeMapBlock extends BlockBase {

/**
* {@inheritdoc}
*/

    public function build() {
        $block = [
            '#theme' => 'qd30mini',
            '#markup' => '<div id="boutique-map-cesium">',
            '#attributes' => [],
            '#attached' => [
                'library' => 'qd30map/cesiumMini',
            ]

        ];

        return $block;
    }
}
