new things

This commit is contained in:
Dan Chadwick
2024-04-09 20:46:39 -07:00
parent 5a0d8efcf9
commit 69f2a14f9b
13 changed files with 137 additions and 70 deletions

View File

@@ -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;
}
}