You are here

interface BinaryInterface in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php \Drupal\Core\TypedData\Type\BinaryInterface

Interface for binary data.

The plain value of binary data is a PHP file resource, see http://php.net/manual/language.types.resource.php. For setting the value a PHP file resource or a (absolute) stream resource URI may be passed.

Hierarchy

Expanded class hierarchy of BinaryInterface

All classes that implement BinaryInterface

Related topics

2 files declare their use of BinaryInterface
BinaryData.php in core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php
Contains \Drupal\Core\TypedData\Plugin\DataType\BinaryData.
PrimitiveTypeConstraintValidator.php in core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\PrimitiveTypeConstraintValidator.

File

core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php, line 21
Contains \Drupal\Core\TypedData\Type\BinaryInterface.

Namespace

Drupal\Core\TypedData\Type
View source
interface BinaryInterface extends PrimitiveInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
PrimitiveInterface::getCastedValue public function Gets the primitive data value casted to the correct PHP type. 5
PrimitiveInterface::getValue public function Gets the primitive data value.
PrimitiveInterface::setValue public function Sets the primitive data value.