BlockListBuilder::getThemeName

protected BlockListBuilder::getThemeName()

Gets the name of the theme used for this block listing.

Return value

string The name of the theme.

File

core/modules/block/src/BlockListBuilder.php, line 316

Class

BlockListBuilder
Defines a class to build a listing of block entities.

Namespace

Drupal\block

Code

1
2
3
4
5
6
7
protected function getThemeName() {
  // If no theme was specified, use the current theme.
  if (!$this->theme) {
    $this->theme = $this->themeManager->getActiveTheme()->getName();
  }
  return $this->theme;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.