Commit 40f9a704 authored by lauriii's avatar lauriii

Issue #2882784 by harsha012, douggreen, joelpittet: Fix...

Issue #2882784 by harsha012, douggreen, joelpittet: Fix ThemeHandlerInterface::setDefault() deprecation code example in header comment
parent 23045813
......@@ -167,7 +167,13 @@ public function getDefault();
* @return $this
*
* @deprecated in Drupal 8.2.x-dev and will be removed before Drupal 9.0.0.
* Use \Drupal::config('system.theme')->set('default', $theme)->save().
* Use
* @code
* \Drupal::configFactory()
* ->getEditable('system.theme')
* ->set('default', $theme)
* ->save();
* @endcode
*/
public function setDefault($theme);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment