You are here

public function ContentBuilderForm::__construct in Schema.org configuration tool (RDF UI) 8

Constructs a new ContentBuilder.

File

rdf_builder/src/Form/ContentBuilderForm.php, line 59

Class

ContentBuilderForm

Namespace

Drupal\rdf_builder\Form

Code

public function __construct() {
  $this->converter = new SchemaOrgConverter();
  $this->datatype_field_mappings = array(
    'http://schema.org/Text' => 'string',
    'http://schema.org/PostalAddress' => 'string_long',
    'http://schema.org/Number' => 'integer',
    'http://schema.org/MediaObject' => 'file',
    'http://schema.org/AudioObject' => 'file',
    'http://schema.org/DateTime' => 'datetime',
    'http://schema.org/Date' => 'datetime',
    'http://schema.org/Integer' => 'integer',
    'http://schema.org/Time' => 'datetime',
    'http://schema.org/ImageObject' => 'image',
    'http://schema.org/Boolean' => 'boolean',
  );
}