You are here

public function BlockContent::setReusable in Drupal 9

Same name and namespace in other branches
  1. 8 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\Entity

Code

public function setReusable() {
  return $this
    ->set('reusable', TRUE);
}