Pushing overhaul.
This commit is contained in:
29
web/modules/custom/dc_react/src/Plugin/Block/ReactBlock.php
Normal file
29
web/modules/custom/dc_react/src/Plugin/Block/ReactBlock.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\dc_react\Plugin\Block;
|
||||
|
||||
use Drupal\Core\Block\BlockBase;
|
||||
|
||||
/**
|
||||
* Provides a React app block.
|
||||
*
|
||||
* @Block(
|
||||
* id = "react_block",
|
||||
* admin_label = @Translation("React Block"),
|
||||
* category = @Translation("React"),
|
||||
* )
|
||||
*/
|
||||
class ReactBlock extends BlockBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function build() {
|
||||
$build = [
|
||||
'#theme' => 'react_block',
|
||||
];
|
||||
|
||||
return $build;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user