public function FixedBlockContentInterface::exportDefaultContent in Fixed Block Content 8
Export the default content stored in config to the content block.
Parameters
bool $update_existing: (optional) Export the contents into the existing block content, if any.
The existing block content entity is deleted and replaced by a new one unless $update_existing is given. If there is no default content defined in the fixed block or it is not valid, a new empty block is created.
1 method overrides FixedBlockContentInterface::exportDefaultContent()
- FixedBlockContent::exportDefaultContent in src/
Entity/ FixedBlockContent.php - Export the default content stored in config to the content block.
File
- src/
FixedBlockContentInterface.php, line 58
Class
- FixedBlockContentInterface
- Fixed block content interface.
Namespace
Drupal\fixed_block_contentCode
public function exportDefaultContent($update_existing = FALSE);