public function Binary::getValue

Implements TypedDataInterface::getValue().

Overrides TypedData::getValue

1 call to Binary::getValue()
Binary::getString in drupal/core/lib/Drupal/Core/TypedData/Type/Binary.php
Implements TypedDataInterface::getString().

File

drupal/core/lib/Drupal/Core/TypedData/Type/Binary.php, line 39
Definition of Drupal\Core\TypedData\Type\Binary.

Class

Binary
The binary data type.

Namespace

Drupal\Core\TypedData\Type

Code

public function getValue() {
  if (!isset($this->handle) && isset($this->uri)) {
    $this->handle = fopen($this->uri, 'rb');
  }
  return $this->handle;
}