class MapTypesFromInputEvent

Represents type mapping as event.

Hierarchy

Expanded class hierarchy of MapTypesFromInputEvent

1 file declares its use of MapTypesFromInputEvent
RdfMappingManager.php in drupal/core/modules/rdf/lib/Drupal/rdf/RdfMappingManager.php
Contains RdfMappingManager.

File

drupal/core/modules/rdf/lib/Drupal/rdf/MapTypesFromInputEvent.php, line 15
Contains MapInputTypesEvent.

Namespace

Drupal\rdf
View source
class MapTypesFromInputEvent extends Event {

  /**
   * An array of incoming RDF type URIs.
   *
   * @var array
   */
  protected $inputUris;

  /**
   * An array of entity_type/bundles, keyed by site schema type URI
   *
   * @var array
   */
  protected $siteSchemaTypes;

  /**
   * The site schema type URI.
   *
   * @var string
   */
  protected $siteSchemaUri;

  /**
   * Constructor.
   *
   * @param $input_uris
   *   An array of incoming RDF type URIs.
   * @param $site_schema_types
   *   An array of entity_type/bundles, keyed by site schema type URI.
   */
  public function __construct($input_uris, $site_schema_types) {
    $this->inputUris = $input_uris;
    $this->siteSchemaTypes = $site_schema_types;
    $this->siteSchemaUri = FALSE;
  }

  /**
   * Gets the input URI.
   *
   * @return array
   *   The array of incoming RDF type URIs.
   */
  public function getInputUris() {
    return $this->inputUris;
  }

  /**
   * Gets the cache of internal site schema types.
   *
   * @return array
   *   The cached site schema type array.
   */
  public function getSiteSchemaTypes() {
    return $this->siteSchemaTypes;
  }

  /**
   * Gets the site schema URI.
   *
   * @return string|bool
   *   The site schema type URI if set, FALSE if otherwise.
   */
  public function getSiteSchemaUri() {
    return $this->siteSchemaUri;
  }

  /**
   * Sets the site schema URI.
   *
   * @param string $uri
   *   The site schema type URI.
   */
  public function setSiteSchemaUri($uri) {
    $this->siteSchemaUri = $uri;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Event::$dispatcher private property
Event::$name private property
Event::$propagationStopped private property
Event::getDispatcher public function Returns the EventDispatcher that dispatches this Event
Event::getName public function Gets the event's name.
Event::isPropagationStopped public function Returns whether further event listeners should be triggered.
Event::setDispatcher public function Stores the EventDispatcher that dispatches this Event
Event::setName public function Sets the event's name property.
Event::stopPropagation public function Stops the propagation of the event to further event listeners.
MapTypesFromInputEvent::$inputUris protected property An array of incoming RDF type URIs.
MapTypesFromInputEvent::$siteSchemaTypes protected property An array of entity_type/bundles, keyed by site schema type URI
MapTypesFromInputEvent::$siteSchemaUri protected property The site schema type URI.
MapTypesFromInputEvent::getInputUris public function Gets the input URI.
MapTypesFromInputEvent::getSiteSchemaTypes public function Gets the cache of internal site schema types.
MapTypesFromInputEvent::getSiteSchemaUri public function Gets the site schema URI.
MapTypesFromInputEvent::setSiteSchemaUri public function Sets the site schema URI.
MapTypesFromInputEvent::__construct public function Constructor.