public function BlockContent::setReusable in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setReusable()
- 9 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setReusable()
Sets the block to be reusable.
Return value
$this
Overrides BlockContentInterface::setReusable
File
- core/
modules/ block_content/ src/ Entity/ BlockContent.php, line 300
Class
- BlockContent
- Defines the custom block entity class.
Namespace
Drupal\block_content\EntityCode
public function setReusable() {
return $this
->set('reusable', TRUE);
}