RdfMappingEvents.php 657 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php

/**
 * @file
 * Contains RdfMappingEvents.
 */

namespace Drupal\rdf;

/**
 * Contains all events for mapping site schemas to external vocabularies.
 */
final class RdfMappingEvents {

  /**
   * Maps an array of incoming type URIs to a site schema URI.
   *
   * Modules can use this event to convert an RDF type from an externally
   * defined vocabulary to a URI defined in the site's schema. From the site
   * schema URI, the site can derive the Typed Data API ids, which can be used
   * to create an entity.
   *
   * @see \Drupal\rdf\RdfMappingManager
   *
   * @var string
   */
  const MAP_TYPES_FROM_INPUT = 'rdf.map_types_from_input';

}