public function CustomBlockInterface::setTheme

Sets the theme value.

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.

Parameters

string $theme: The theme name.

1 method overrides CustomBlockInterface::setTheme()
CustomBlock::setTheme in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php
Sets the theme value.

File

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

Class

CustomBlockInterface
Provides an interface defining a custom block entity.

Namespace

Drupal\custom_block

Code

public function setTheme($theme);