You are here

public function BlockFieldTestContentBlock::defaultConfiguration in Block field 8

Overrides BlockPluginTrait::defaultConfiguration

File

tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestContentBlock.php, line 22

Class

BlockFieldTestContentBlock
Provides a 'Block field test content' block.

Namespace

Drupal\block_field_test\Plugin\Block

Code

public function defaultConfiguration() {
  return [
    'content' => $this
      ->t('A default value. This block was created at @time', [
      '@time' => date('Y-m-d h:i:sa'),
    ]),
  ];
}