Settings::__sleep

public function Settings::__sleep

public Settings::__sleep()

Prevents settings from being serialized.

File

core/lib/Drupal/Core/Site/Settings.php, line 61

Class

Settings
Read only settings that are initialized with the class.

Namespace

Drupal\Core\Site

Code

public function __sleep() {
  throw new \LogicException('Settings can not be serialized. This probably means you are serializing an object that has an indirect reference to the Settings object. Adjust your code so that is not necessary.');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Site!Settings.php/function/Settings::__sleep/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部