You are here

public function ConfigPages::setTheme in Config Pages 8

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

Sets 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.

Parameters

string $theme: The theme name.

Return value

\Drupal\config_pages\ConfigPagesInterface The class instance that this method is called on.

Overrides ConfigPagesInterface::setTheme

File

src/Entity/ConfigPages.php, line 81

Class

ConfigPages
Defines the config page entity class.

Namespace

Drupal\config_pages\Entity

Code

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