protected property CustomBlock::$theme

The theme the block is being created in.

When creating a new custom block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the custom block add form is shown.

Type: string

File

drupal/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php, line 121
Contains \Drupal\custom_block\Plugin\Core\Entity\CustomBlock.

Class

CustomBlock
Defines the custom block entity class.

Namespace

Drupal\custom_block\Plugin\Core\Entity

Code

protected $theme;