You are here

ImageObject.php in Schema.org Metatag 8.2

File

src/Plugin/schema_metatag/PropertyType/ImageObject.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 'ImageObject' Schema.org property type.
 *
 * @SchemaPropertyType(
 *   id = "image_object",
 *   label = @Translation("ImageObject"),
 *   tree_parent = {
 *     "ImageObject",
 *   },
 *   tree_depth = 0,
 *   property_type = "ImageObject",
 *   sub_properties = {
 *     "@type" = {
 *       "id" = "type",
 *       "label" = @Translation("@type"),
 *       "description" = "",
 *     },
 *     "representativeOfPage" = {
 *       "id" = "boolean",
 *       "label" = @Translation("representativeOfPage"),
 *       "description" = @Translation("Whether this image is representative of the content of the page."),
 *     },
 *     "url" = {
 *       "id" = "url",
 *       "label" = @Translation("url"),
 *       "description" = @Translation("Absolute URL of the image, i.e. [node:field_name:image_preset_name:url]."),
 *     },
 *     "width" = {
 *       "id" = "number",
 *       "label" = @Translation("width"),
 *       "description" = "",
 *     },
 *     "height" = {
 *       "id" = "number",
 *       "label" = @Translation("height"),
 *       "description" = "",
 *     },
 *   },
 * )
 */
class ImageObject extends PropertyTypeBase {

}

Classes

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