public function FixedBlockContent::setAutoExportState in Fixed Block Content 8
Sets the automatic default content export state on configuration update.
Parameters
int $state: (optional) The automatic export state.
Available auto-export states:
- 0: Disabled.
- 1: Only if the current content is empty. This is the default value.
- 2: Unconditional automatic export of block content.
Return value
\Drupal\fixed_block_content\FixedBlockContentInterface The called fixed block entity object.
Overrides FixedBlockContentInterface::setAutoExportState
File
- src/
Entity/ FixedBlockContent.php, line 214
Class
- FixedBlockContent
- Configuration entity for the fixed block content.
Namespace
Drupal\fixed_block_content\EntityCode
public function setAutoExportState($state = FixedBlockContentInterface::AUTO_EXPORT_ON_EMPTY) {
$this->auto_export = $state;
return $this;
}