You are here

public function SimpleBlock::getContent in Simple Block 8

Returns the content of the block.

Return value

string[] The content of the block.

Overrides SimpleBlockInterface::getContent

File

src/Entity/SimpleBlock.php, line 71

Class

SimpleBlock
Defines the block config configuration entity.

Namespace

Drupal\simple_block\Entity

Code

public function getContent() {
  return $this->content ?: [
    'value' => '',
    'format' => filter_default_format(),
  ];
}