public function BinaryData::getValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php \Drupal\Core\TypedData\Plugin\DataType\BinaryData::getValue()
Gets the data value.
Return value
mixed
Overrides PrimitiveBase::getValue
2 calls to BinaryData::getValue()
- BinaryData::getCastedValue in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ BinaryData.php - Gets the primitive data value casted to the correct PHP type.
- BinaryData::getString in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ BinaryData.php - Returns a string representation of the data.
File
- core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ BinaryData.php, line 44 - Contains \Drupal\Core\TypedData\Plugin\DataType\BinaryData.
Class
- BinaryData
- The binary data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
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;
}