interface BinaryInterface in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php \Drupal\Core\TypedData\Type\BinaryInterface
- 9 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 an (absolute) stream resource URI may be passed.
Hierarchy
- interface \Drupal\Core\TypedData\PrimitiveInterface
- interface \Drupal\Core\TypedData\Type\BinaryInterface
Expanded class hierarchy of BinaryInterface
All classes that implement BinaryInterface
Related topics
3 files declare their use of BinaryInterface
- BinaryData.php in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ BinaryData.php - PrimitiveTypeConstraintValidator.php in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ PrimitiveTypeConstraintValidator.php - TypedDataTest.php in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ TypedDataTest.php
File
- core/
lib/ Drupal/ Core/ TypedData/ Type/ BinaryInterface.php, line 16
Namespace
Drupal\Core\TypedData\TypeView source
interface BinaryInterface extends PrimitiveInterface {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrimitiveInterface:: |
public | function | Gets the primitive data value casted to the correct PHP type. | 1 |
PrimitiveInterface:: |
public | function | Gets the primitive data value. | |
PrimitiveInterface:: |
public | function | Sets the primitive data value. |