protected function SchemataBrowserTestBase::getDereferencedSchemaByOptions in Schemata 8
Requests a dereferenced Schema via HTTP.
Dereferencing a schema processes references to external schema documents and prepares it to be used as a validation authority.
Parameters
string $format: The described format.
string $entity_type_id: Then entity type.
string|null $bundle_id: The bundle name or NULL.
Return value
object Dereferenced schema object.
File
- tests/
src/ Functional/ SchemataBrowserTestBase.php, line 169
Class
- SchemataBrowserTestBase
- Sets up functional testing for Schemata.
Namespace
Drupal\Tests\schemata\FunctionalCode
protected function getDereferencedSchemaByOptions($format, $entity_type_id, $bundle_id = NULL) {
$url = SchemaUrl::fromOptions('schema_json', $format, $entity_type_id, $bundle_id)
->toString();
return $this
->requestSchemaByUrl($url);
}