Skip to content
Snippets Groups Projects
Commit bcc4a59c authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2100407 by smiletrl, Berdir: Fixed Wrong doc of returned value for TypedData::getParent().

parent 7c58d4e2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -73,21 +73,21 @@ public function getPluginDefinition() {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getDefinition().
* {@inheritdoc}
*/
public function getDefinition() {
return $this->definition;
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getValue().
* {@inheritdoc}
*/
public function getValue() {
return $this->value;
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::setValue().
* {@inheritdoc}
*/
public function setValue($value, $notify = TRUE) {
$this->value = $value;
......@@ -98,14 +98,14 @@ public function setValue($value, $notify = TRUE) {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getString().
* {@inheritdoc}
*/
public function getString() {
return (string) $this->getValue();
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getConstraints().
* {@inheritdoc}
*/
public function getConstraints() {
// @todo: Add the typed data manager as proper dependency.
......@@ -113,7 +113,7 @@ public function getConstraints() {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::validate().
* {@inheritdoc}
*/
public function validate() {
// @todo: Add the typed data manager as proper dependency.
......@@ -130,7 +130,7 @@ public function applyDefaultValue($notify = TRUE) {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::setContext().
* {@inheritdoc}
*/
public function setContext($name = NULL, TypedDataInterface $parent = NULL) {
$this->parent = $parent;
......@@ -138,14 +138,14 @@ public function setContext($name = NULL, TypedDataInterface $parent = NULL) {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getName().
* {@inheritdoc}
*/
public function getName() {
return $this->name;
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getRoot().
* {@inheritdoc}
*/
public function getRoot() {
if (isset($this->parent)) {
......@@ -156,7 +156,7 @@ public function getRoot() {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getPropertyPath().
* {@inheritdoc}
*/
public function getPropertyPath() {
if (isset($this->parent)) {
......@@ -174,9 +174,7 @@ public function getPropertyPath() {
}
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getParent().
*
* @return \Drupal\Core\Entity\Field\FieldItemListInterface
* {@inheritdoc}
*/
public function getParent() {
return $this->parent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment