interface PrimitiveInterface
Interface for primitive data.
Hierarchy
- interface \Drupal\Core\TypedData\PrimitiveInterface
Expanded class hierarchy of PrimitiveInterface
All classes that implement PrimitiveInterface
Related topics
11 files declare their use of PrimitiveInterface
- AllowedValuesConstraintValidator.php in core/lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AllowedValuesConstraintValidator.php 
- BinaryInterface.php in core/lib/ Drupal/ Core/ TypedData/ Type/ BinaryInterface.php 
- BooleanInterface.php in core/lib/ Drupal/ Core/ TypedData/ Type/ BooleanInterface.php 
- FloatInterface.php in core/lib/ Drupal/ Core/ TypedData/ Type/ FloatInterface.php 
- IntegerInterface.php in core/lib/ Drupal/ Core/ TypedData/ Type/ IntegerInterface.php 
File
- 
              core/lib/ Drupal/ Core/ TypedData/ PrimitiveInterface.php, line 10 
Namespace
Drupal\Core\TypedDataView source
interface PrimitiveInterface {
  
  /**
   * Gets the primitive data value.
   *
   * @return mixed
   */
  public function getValue();
  
  /**
   * Sets the primitive data value.
   *
   * @param mixed|null $value
   *   The value to set in the format as documented for the data type or NULL to
   *   unset the data value.
   */
  public function setValue($value);
  
  /**
   * Gets the primitive data value casted to the correct PHP type.
   *
   * @return mixed
   */
  public function getCastedValue();
}Members
| Title Sort descending | Modifiers | Object type | Summary | 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. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
