public function FixedBlockContent::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.
Overrides FixedBlockContentInterface::setProtected
File
- src/
Entity/ FixedBlockContent.php, line 278
Class
- FixedBlockContent
- Configuration entity for the fixed block content.
Namespace
Drupal\fixed_block_content\EntityCode
public function setProtected($value = TRUE) {
$this->protected = $value;
}