You are here

public function FixedBlockContentInterface::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.

1 method overrides FixedBlockContentInterface::setAutoExportState()
FixedBlockContent::setAutoExportState in src/Entity/FixedBlockContent.php
Sets the automatic default content export state on configuration update.

File

src/FixedBlockContentInterface.php, line 100

Class

FixedBlockContentInterface
Fixed block content interface.

Namespace

Drupal\fixed_block_content

Code

public function setAutoExportState($state = FixedBlockContentInterface::AUTO_EXPORT_ON_EMPTY);