BaseFieldOverride::__sleep

public BaseFieldOverride::__sleep()

Implements the magic __sleep() method.

Overrides FieldConfigBase::__sleep

File

core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 234

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

public function __sleep() {
  // Only serialize necessary properties, excluding those that can be
  // recalculated.
  unset($this->baseFieldDefinition);
  return parent::__sleep();
}
doc_Drupal
2016-10-29 08:45:54
Comments
Leave a Comment

Please login to continue.