Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Block / TestContextAwareUnsatisfiedBlock.php
1 <?php
2
3 namespace Drupal\block_test\Plugin\Block;
4
5 use Drupal\Core\Block\BlockBase;
6
7 /**
8  * Provides a context-aware block.
9  *
10  * @Block(
11  *   id = "test_context_aware_unsatisfied",
12  *   admin_label = @Translation("Test context-aware unsatisfied block"),
13  *   context = {
14  *     "user" = @ContextDefinition("entity:foobar")
15  *   }
16  * )
17  */
18 class TestContextAwareUnsatisfiedBlock extends BlockBase {
19
20   /**
21    * {@inheritdoc}
22    */
23   public function build() {
24     return [
25       '#markup' => 'test',
26     ];
27   }
28
29 }