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
510 B

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