public function PageBlockDisplayVariant::__sleep in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Plugin/DisplayVariant/PageBlockDisplayVariant.php \Drupal\page_manager\Plugin\DisplayVariant\PageBlockDisplayVariant::__sleep()
Overrides BlockDisplayVariant::__sleep
File
- src/
Plugin/ DisplayVariant/ PageBlockDisplayVariant.php, line 328 - Contains \Drupal\page_manager\Plugin\DisplayVariant\PageBlockDisplayVariant.
Class
- PageBlockDisplayVariant
- Provides a variant plugin that simply contains blocks.
Namespace
Drupal\page_manager\Plugin\DisplayVariantCode
public function __sleep() {
$vars = parent::__sleep();
// Gathered contexts objects should not be serialized.
if (($key = array_search('contexts', $vars)) !== FALSE) {
unset($vars[$key]);
}
return $vars;
}