summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/PrimitiveInterface.php
diff options
context:
space:
mode:
authorDries2013-12-20 16:27:41 (GMT)
committerDries2013-12-20 16:27:41 (GMT)
commit141cb6f304b1ab2087c75154e8d67057b8cd03bb (patch)
tree2ae9c84a74a9f40a3950d93760192868e1ac374a /core/lib/Drupal/Core/TypedData/PrimitiveInterface.php
parentb3ac555f5c5138eac84defe4bb787e17bd0f151c (diff)
Issue #2130811 by alexpott, Gábor Hojtsy, vijaycs85, sun, Wim Leers: Use config schema in saving and validating configuration form to ensure data is consistent and correct.
Diffstat (limited to 'core/lib/Drupal/Core/TypedData/PrimitiveInterface.php')
-rw-r--r--core/lib/Drupal/Core/TypedData/PrimitiveInterface.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/TypedData/PrimitiveInterface.php b/core/lib/Drupal/Core/TypedData/PrimitiveInterface.php
index b2293e2..01ad0d9 100644
--- a/core/lib/Drupal/Core/TypedData/PrimitiveInterface.php
+++ b/core/lib/Drupal/Core/TypedData/PrimitiveInterface.php
@@ -28,4 +28,10 @@ interface PrimitiveInterface {
*/
public function setValue($value);
+ /**
+ * Gets the primitive data value casted to the correct PHP type.
+ *
+ * @return mixed
+ */
+ public function getCastedValue();
}