You are here

public function DefaultContentHandlerInterface::exportDefaultContent in Fixed Block Content 8

Export the default content stored in config to a new custom block.

Parameters

\Drupal\fixed_block_content\FixedBlockContentInterface $fixed_block: The fixed block to work with.

Return value

\Drupal\block_content\BlockContentInterface The new custom block content (unsaved), NULL if no default content or there ware errors.

1 method overrides DefaultContentHandlerInterface::exportDefaultContent()
DefaultContentHandler::exportDefaultContent in src/DefaultContentHandler.php
Export the default content stored in config to a new custom block.

File

src/DefaultContentHandlerInterface.php, line 22

Class

DefaultContentHandlerInterface
Default content handler interface for the fixed block content entity type.

Namespace

Drupal\fixed_block_content

Code

public function exportDefaultContent(FixedBlockContentInterface $fixed_block);