Block::getRegion

public Block::getRegion() Returns the region this block is placed in. Return value string The region this block is placed in. Overrides BlockInterface::getRegion File core/modules/block/src/Entity/Block.php, line 171 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code public function getRegion() { return $this->region; }

Block::createDuplicateBlock

public Block::createDuplicateBlock($new_id = NULL, $new_theme = NULL) Creates a duplicate of the block entity. Parameters string $new_id: (optional) The new ID on the duplicate block. string $new_theme: (optional) The theme on the duplicate block. Return value static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system. Overrides BlockInterface::createDuplicateBlock File core/modules/block/src/Entity/Block.php, line 319 Class Block Define

Block::$visibility

The visibility settings for this block. Type: array File core/modules/block/src/Entity/Block.php, line 94 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code protected $visibility = [];

Block::$visibilityCollection

The visibility collection. Type: \Drupal\Core\Condition\ConditionPluginCollection File core/modules/block/src/Entity/Block.php, line 115 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code protected $visibilityCollection;

Block::calculateDependencies

public Block::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/block/src/Entity/Block.php, line 226 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code public function calculateDependencies() { parent::calculateDependencies(); $this->addDependency('the

Block::getTheme

public Block::getTheme() Returns the theme ID. Return value string The theme ID for this block instance. Overrides BlockInterface::getTheme File core/modules/block/src/Entity/Block.php, line 178 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code public function getTheme() { return $this->theme; }

Block::$weight

The block weight. Type: int File core/modules/block/src/Entity/Block.php, line 80 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code protected $weight;

Block::$contexts

The available contexts for this block and its visibility conditions. Type: array File core/modules/block/src/Entity/Block.php, line 108 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code protected $contexts = [];

Block::$region

The region this block is placed in. Type: string File core/modules/block/src/Entity/Block.php, line 73 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code protected $region = self::BLOCK_REGION_NONE;

Block::$theme

The theme that includes the block plugin for this entity. Type: string File core/modules/block/src/Entity/Block.php, line 129 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code protected $theme;