public function Binary::getValue

Overrides TypedData::getValue().

Overrides TypedData::getValue

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

File

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

Class

Binary
The binary data type.

Namespace

Drupal\Core\TypedData\Type

Code

public function getValue() {

  // If the value has been set by (absolute) stream resource URI, access the
  // resource now.
  if (!isset($this->handle) && isset($this->uri)) {
    $this->handle = is_readable($this->uri) ? fopen($this->uri, 'rb') : FALSE;
  }
  return $this->handle;
}