function TypedData::validate

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::validate()
  2. 10 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::validate()
  3. 11.x core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::validate()

Overrides TypedDataInterface::validate

1 call to TypedData::validate()
FieldItemList::defaultValuesFormValidate in core/lib/Drupal/Core/Field/FieldItemList.php
Validates the submitted default value.

File

core/lib/Drupal/Core/TypedData/TypedData.php, line 131

Class

TypedData
The abstract base class for typed data.

Namespace

Drupal\Core\TypedData

Code

public function validate() {
    return $this->getTypedDataManager()
        ->getValidator()
        ->validate($this);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.