public function BlockContentInterface::setTheme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block_content/src/BlockContentInterface.php \Drupal\block_content\BlockContentInterface::setTheme()
Sets the theme value.
When creating a new block content 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 block content add form is shown.
Parameters
string $theme: The theme name.
Return value
\Drupal\block_content\BlockContentInterface The class instance that this method is called on.
1 method overrides BlockContentInterface::setTheme()
- BlockContent::setTheme in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Sets the theme value.
File
- core/
modules/ block_content/ src/ BlockContentInterface.php, line 61 - Contains \Drupal\block_content\BlockContentInterface.
Class
- BlockContentInterface
- Provides an interface defining a custom block entity.
Namespace
Drupal\block_contentCode
public function setTheme($theme);