BlockInterface::getVisibilityConditions

public BlockInterface::getVisibilityConditions() Gets conditions for this block. Return value \Drupal\Core\Condition\ConditionInterface[]|\Drupal\Core\Condition\ConditionPluginCollection An array or collection of configured condition plugins. File core/modules/block/src/BlockInterface.php, line 68 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function getVisibilityConditions();

BlockInterface::getVisibility

public BlockInterface::getVisibility() Returns an array of visibility condition configurations. Return value array An array of visibility condition configuration keyed by the condition ID. File core/modules/block/src/BlockInterface.php, line 60 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function getVisibility();

BlockInterface::setWeight

public BlockInterface::setWeight($weight) Sets the block weight. Parameters int $weight: The desired weight. Return value $this File core/modules/block/src/BlockInterface.php, line 119 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function setWeight($weight);

BlockInterface::setVisibilityConfig

public BlockInterface::setVisibilityConfig($instance_id, array $configuration) Sets the visibility condition configuration. Parameters string $instance_id: The condition instance ID. array $configuration: The condition configuration. Return value $this File core/modules/block/src/BlockInterface.php, line 91 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function setVisibilityConfig($instance_id, array $configuration);

BlockInterface::getVisibilityCondition

public BlockInterface::getVisibilityCondition($instance_id) Gets a visibility condition plugin instance. Parameters string $instance_id: The condition plugin instance ID. Return value \Drupal\Core\Condition\ConditionInterface A condition plugin. File core/modules/block/src/BlockInterface.php, line 79 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function getVisibilityCondition($instance_id);

BlockInterface::setRegion

public BlockInterface::setRegion($region) Sets the region this block is placed in. Parameters string $region: The region to place this block in. Return value $this File core/modules/block/src/BlockInterface.php, line 109 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function setRegion($region);

BlockInterface::getWeight

public BlockInterface::getWeight() Returns the weight of this block (used for sorting). Return value int The block weight. File core/modules/block/src/BlockInterface.php, line 99 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function getWeight();

BlockInterface::getTheme

public BlockInterface::getTheme() Returns the theme ID. Return value string The theme ID for this block instance. File core/modules/block/src/BlockInterface.php, line 52 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function getTheme();

BlockInterface::createDuplicateBlock

public BlockInterface::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. File core/modules/block/src/BlockInterface.php, line 133 Class BlockInterface Provides an interface defining a

BlockInterface::BLOCK_REGION_NONE

Denotes that a block is not enabled in any region and should not be shown. File core/modules/block/src/BlockInterface.php, line 20 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code const BLOCK_REGION_NONE = -1;