Map an array of incoming URIs to an internal site schema URI.
array $input_rdf_types: An array of RDF type URIs.
string The corresponding site schema type URI.
protected function mapTypesFromInput($input_rdf_types) {
// Create the event using the array of incoming RDF type URIs and the cache
// of internal site schema URIs.
$site_schema_types = $this->siteSchemaManager
->getTypes();
$mapping_event = new MapTypesFromInputEvent($input_rdf_types, $site_schema_types);
// Allow other modules to map the incoming type URIs to an internal site
// schema type URI. For example, a content deployment module could take
// URIs from the staging site's schema and map them to the corresponding
// URI in the live site's schema.
$this->dispatcher
->dispatch(RdfMappingEvents::MAP_TYPES_FROM_INPUT, $mapping_event);
return $mapping_event
->getSiteSchemaUri();
}