You are here

public function FixedBlockContentInterface::getBlockContent in Fixed Block Content 8

Returns the block content entity linked to this fixed block.

Parameters

bool $create: (optional) Creates a new block content and links it to this fixed block if there is no block content currently linked. Defaults to TRUE.

Return value

null|\Drupal\block_content\BlockContentInterface The custom block linked to this fixed block content, NULL if not found and the create argument is FALSE.

1 method overrides FixedBlockContentInterface::getBlockContent()
FixedBlockContent::getBlockContent in src/Entity/FixedBlockContent.php
Returns the block content entity linked to this fixed block.

File

src/FixedBlockContentInterface.php, line 38

Class

FixedBlockContentInterface
Fixed block content interface.

Namespace

Drupal\fixed_block_content

Code

public function getBlockContent($create = TRUE);