You are here

public function ConfigPages::getTheme in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::getTheme()
  2. 8.2 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::getTheme()

Gets the theme value.

When creating a new config page content config page from the config page library, the user is redirected to the configure form for that config page in the given theme. The theme is stored against the config page when the config page content add form is shown.

Return value

string The theme name.

Overrides ConfigPagesInterface::getTheme

File

src/Entity/ConfigPages.php, line 89

Class

ConfigPages
Defines the config page entity class.

Namespace

Drupal\config_pages\Entity

Code

public function getTheme() {
  return $this->theme;
}