public function FixedBlockContentInterface::setProtected in Fixed Block Content 8
Sets the fixed block protected option.
When enabled, the linked custom block is set as non reusable.
Parameters
bool $value: Boolean indicating to enable or disable the option.
Return value
\Drupal\fixed_block_content\FixedBlockContentInterface The called fixed block entity object.
1 method overrides FixedBlockContentInterface::setProtected()
- FixedBlockContent::setProtected in src/
Entity/ FixedBlockContent.php - Sets the fixed block protected option.
File
- src/
FixedBlockContentInterface.php, line 76
Class
- FixedBlockContentInterface
- Fixed block content interface.
Namespace
Drupal\fixed_block_contentCode
public function setProtected($value = TRUE);