You are here

interface TypeMapperInterface in Schemata 8

Defines the extended methods needed for a TypeMapper plugin.

Hierarchy

  • interface \Drupal\schemata_json_schema\Plugin\schemata_json_schema\type_mapper\TypeMapperInterface

Expanded class hierarchy of TypeMapperInterface

All classes that implement TypeMapperInterface

1 file declares its use of TypeMapperInterface
TypeMapperPluginManager.php in schemata_json_schema/src/Plugin/Type/TypeMapperPluginManager.php

File

schemata_json_schema/src/Plugin/schemata_json_schema/type_mapper/TypeMapperInterface.php, line 10

Namespace

Drupal\schemata_json_schema\Plugin\schemata_json_schema\type_mapper
View source
interface TypeMapperInterface {

  /**
   * Convert the data definition property to a JSON Schema form.
   *
   * @param \Drupal\Core\TypedData\DataDefinitionInterface $property
   *   The data definition property.
   *
   * @return mixed
   *   The mapped value to represent the property in a JSON Schema schema.
   */
  public function getMappedValue(DataDefinitionInterface $property);

}

Members

Namesort descending Modifiers Type Description Overrides
TypeMapperInterface::getMappedValue public function Convert the data definition property to a JSON Schema form. 1