new things
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\ufc\Plugin\Block;
|
||||
|
||||
use Drupal\Core\Block\BlockBase;
|
||||
|
||||
/**
|
||||
* Provides a Recent Fights Block.
|
||||
*
|
||||
* @Block(
|
||||
* id = "recent_fights_block",
|
||||
* admin_label = @Translation("Recent Fights Block"),
|
||||
* category = @Translation("Recent Fights Block"),
|
||||
* )
|
||||
*/
|
||||
class RecentFightsBlock extends BlockBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function build() {
|
||||
$build = [
|
||||
'#theme' => 'ufc_recent_fights',
|
||||
];
|
||||
|
||||
return $build;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user