function JsonSchema::getJsonSchema
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Serialization/Attribute/JsonSchema.php \Drupal\Core\Serialization\Attribute\JsonSchema::getJsonSchema()
Get a JSON Schema type definition array.
Return value
array Type definition.
File
-
core/
lib/ Drupal/ Core/ Serialization/ Attribute/ JsonSchema.php, line 32
Class
- JsonSchema
- Attribute for methods to express the JSON Schema of its return value.
Namespace
Drupal\Core\Serialization\AttributeCode
public function getJsonSchema() : array {
return $this->schema;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.