Drupal 8 Site using Vue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
475 B

<?php
namespace Drupal\vue_js_example\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Provides a 'NonVueBlock' block.
*
* @Block(
* id = "non_vue_block",
* admin_label = @Translation("Non vue block"),
* )
*/
class NonVueBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
$build = [];
$build['#theme'] = 'non_vue_block';
$build['non_vue_block']['#markup'] = 'Implement NonVueBlock.';
return $build;
}
}