summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/TypedData.php
diff options
context:
space:
mode:
authorwebchick2013-01-24 18:07:44 (GMT)
committerwebchick2013-01-24 18:07:44 (GMT)
commit2215dc2ecd64b0107ead32f7dea6e7d98c289e8b (patch)
tree319ebe280010a3ef32597ad31fec37b7714ed50b /core/lib/Drupal/Core/TypedData/TypedData.php
parentda31660e31ed88f935f577f922728a1341c9a7f5 (diff)
Issue #1877632 by fago, jhodgdon: Improve comments and clean-up code for EntityNG and the TypedData API.
Diffstat (limited to 'core/lib/Drupal/Core/TypedData/TypedData.php')
-rw-r--r--core/lib/Drupal/Core/TypedData/TypedData.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/core/lib/Drupal/Core/TypedData/TypedData.php b/core/lib/Drupal/Core/TypedData/TypedData.php
index 053bb70..35e168c 100644
--- a/core/lib/Drupal/Core/TypedData/TypedData.php
+++ b/core/lib/Drupal/Core/TypedData/TypedData.php
@@ -35,37 +35,44 @@ abstract class TypedData implements TypedDataInterface {
}
/**
- * Implements TypedDataInterface::getType().
+ * Implements \Drupal\Core\TypedData\TypedDataInterface::getType().
*/
public function getType() {
return $this->definition['type'];
}
/**
- * Implements TypedDataInterface::getDefinition().
+ * Implements \Drupal\Core\TypedData\TypedDataInterface::getDefinition().
*/
public function getDefinition() {
return $this->definition;
}
/**
- * Implements TypedDataInterface::getValue().
+ * Implements \Drupal\Core\TypedData\TypedDataInterface::getValue().
*/
public function getValue() {
return $this->value;
}
/**
- * Implements TypedDataInterface::setValue().
+ * Implements \Drupal\Core\TypedData\TypedDataInterface::setValue().
*/
public function setValue($value) {
$this->value = $value;
}
/**
- * Implements TypedDataInterface::getString().
+ * Implements \Drupal\Core\TypedData\TypedDataInterface::getString().
*/
public function getString() {
return (string) $this->getValue();
}
+
+ /**
+ * Implements \Drupal\Core\TypedData\TypedDataInterface::validate().
+ */
+ public function validate() {
+ // TODO: Implement validate() method.
+ }
}