You are here

public function ConfigPagesInterface::setTheme in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/ConfigPagesInterface.php \Drupal\config_pages\ConfigPagesInterface::setTheme()
  2. 8.2 src/ConfigPagesInterface.php \Drupal\config_pages\ConfigPagesInterface::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.

1 method overrides ConfigPagesInterface::setTheme()
ConfigPages::setTheme in src/Entity/ConfigPages.php
Sets the theme value.

File

src/ConfigPagesInterface.php, line 37

Class

ConfigPagesInterface
Provides an interface defining a custom config page entity.

Namespace

Drupal\config_pages

Code

public function setTheme($theme);