public function TestBlockInstantiation::settings

Returns plugin-specific settings for the block.

Block plugins only need to override this method if they override the defaults provided in BlockBase::settings().

Return value

array An array of block-specific settings to override the defaults provided in BlockBase::settings().

Overrides BlockBase::settings

See also

\Drupal\block\BlockBase::settings().

File

drupal/core/modules/block/tests/lib/Drupal/block_test/Plugin/Block/TestBlockInstantiation.php, line 28
Contains \Drupal\block_test\Plugin\Block\TestBlockInstantiation.

Class

TestBlockInstantiation
Provides a basic block for testing block instantiation and configuration.

Namespace

Drupal\block_test\Plugin\Block

Code

public function settings() {
  return array(
    'display_message' => 'no message set',
  );
}