function EntityField::__wakeup

Same name and namespace in other branches
  1. 4.0.x modules/ctools_block/src/Plugin/Block/EntityField.php \Drupal\ctools_block\Plugin\Block\EntityField::__wakeup()

File

modules/ctools_block/src/Plugin/Block/EntityField.php, line 382

Class

EntityField
Provides a block to a field on an entity.

Namespace

Drupal\ctools_block\Plugin\Block

Code

public function __wakeup() {
    parent::__wakeup();
    // @todo figure out why this happens.
    // prevent $fieldStorageDefinition being erroneously set to $this.
    $this->fieldStorageDefinition = NULL;
}