function BlockContentInterface::getTheme
Same name in other branches
- 9 core/modules/block_content/src/BlockContentInterface.php \Drupal\block_content\BlockContentInterface::getTheme()
- 8.9.x core/modules/block_content/src/BlockContentInterface.php \Drupal\block_content\BlockContentInterface::getTheme()
- 11.x core/modules/block_content/src/BlockContentInterface.php \Drupal\block_content\BlockContentInterface::getTheme()
Gets 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.
Return value
string The theme name.
1 method overrides BlockContentInterface::getTheme()
- BlockContent::getTheme in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Gets the theme value.
File
-
core/
modules/ block_content/ src/ BlockContentInterface.php, line 74
Class
- BlockContentInterface
- Provides an interface defining a content block entity.
Namespace
Drupal\block_contentCode
public function getTheme();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.