protected function BlockListBuilder::getThemeName in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getThemeName()
- 9 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getThemeName()
Gets the name of the theme used for this block listing.
Return value
string The name of the theme.
2 calls to BlockListBuilder::getThemeName()
- BlockListBuilder::buildBlocksForm in core/
modules/ block/ src/ BlockListBuilder.php - Builds the main "Blocks" portion of the form.
- BlockListBuilder::getEntityIds in core/
modules/ block/ src/ BlockListBuilder.php - Loads entity IDs using a pager sorted by the entity id.
File
- core/
modules/ block/ src/ BlockListBuilder.php, line 337
Class
- BlockListBuilder
- Defines a class to build a listing of block entities.
Namespace
Drupal\blockCode
protected function getThemeName() {
// If no theme was specified, use the current theme.
if (!$this->theme) {
$this->theme = $this->themeManager
->getActiveTheme()
->getName();
}
return $this->theme;
}