You are here

Event.php in Schema.org Metatag 8.2

File

src/Plugin/schema_metatag/PropertyType/Event.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 'Event' Schema.org property type.
 *
 * @SchemaPropertyType(
 *   id = "event",
 *   label = @Translation("Event"),
 *   tree_parent = {
 *     "Event",
 *   },
 *   tree_depth = 0,
 *   property_type = "Event",
 *   sub_properties = {
 *     "@type" = {
 *       "id" = "type",
 *       "label" = @Translation("@type"),
 *       "description" = "",
 *     },
 *     "@id" = {
 *       "id" = "text",
 *       "label" = @Translation("@id"),
 *       "description" = @Translation("Globally unique @id of the Event, usually a url, used to to link other properties to this object."),
 *     },
 *     "name" = {
 *       "id" = "text",
 *       "label" = @Translation("name"),
 *       "description" = @Translation("Name of the Event."),
 *     },
 *     "url" = {
 *       "id" = "url",
 *       "label" = @Translation("url"),
 *       "description" = @Translation("Absolute URL of the canonical Web page for the Event."),
 *     },
 *     "startDate" = {
 *       "id" = "date",
 *       "label" = @Translation("startDate"),
 *       "description" = @Translation("Start date of the Event."),
 *     },
 *     "location" =  {
 *       "id" = "place",
 *       "label" = @Translation("location"),
 *       "description" = @Translation("The location of the event."),
 *       "tree_parent" = {
 *         "Place",
 *         "VirtualLocation",
 *       },
 *       "tree_depth" = 1,
 *     },
 *   },
 * )
 */
class Event extends PropertyTypeBase {

}

Classes

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