You are here

Thing.php in Schema.org Metatag 8.2

File

src/Plugin/schema_metatag/PropertyType/Thing.php
View source
<?php

namespace Drupal\schema_metatag\Plugin\schema_metatag\PropertyType;

use Drupal\schema_metatag\Plugin\schema_metatag\PropertyTypeBase;

/**
 * Provides a plugin for the 'Thing' Schema.org property type.
 *
 * @SchemaPropertyType(
 *   id = "thing",
 *   label = @Translation("Thing"),
 *   tree_parent = {
 *     "Thing",
 *   },
 *   tree_depth = 2,
 *   property_type = "Thing",
 *   sub_properties = {
 *     "@type" = {
 *       "id" = "type",
 *       "label" = @Translation("@type"),
 *       "description" = "",
 *     },
 *     "@id" = {
 *       "id" = "text",
 *       "label" = @Translation("@id"),
 *       "description" = @Translation("Globally unique @id of the thing, usually a url, used to to link other properties to this object."),
 *     },
 *     "name" = {
 *       "id" = "text",
 *       "label" = @Translation("name"),
 *       "description" = @Translation("Name of the thing."),
 *     },
 *     "url" = {
 *       "id" = "url",
 *       "label" = @Translation("url"),
 *       "description" = @Translation("Absolute URL of the canonical Web page for the thing."),
 *     },
 *   },
 * )
 */
class Thing extends PropertyTypeBase {

}

Classes

Namesort descending Description
Thing Provides a plugin for the 'Thing' Schema.org property type.