class ContactPoint in Schema.org Metatag 8.2
Provides a plugin for the 'ContactPoint' Schema.org property type.
Plugin annotation
@SchemaPropertyType(
id = "contact_point",
label = @Translation("ContactPoint"),
tree_parent = {
"ContactPoint",
},
tree_depth = 0,
property_type = "ContactPoint",
sub_properties = {
"@type" = {
"id" = "type",
"label" = @Translation("@type"),
"description" = "",
},
"telephone" = {
"id" = "text",
"label" = @Translation("telephone"),
"description" = @Translation("An internationalized version of the phone number, starting with the ""+"" symbol and country code (+1 in the US and Canada). Examples: ""+1-800-555-1212"", ""+44-2078225951""."),
},
"email" = {
"id" = "text",
"label" = @Translation("email"),
"description" = @Translation("Email address."),
},
"faxnumber" = {
"id" = "text",
"label" = @Translation("faxnumber"),
"description" = @Translation("The fax number."),
},
"url" = {
"id" = "url",
"label" = @Translation("url"),
"description" = @Translation("URL of place, organization."),
},
"availableLanguage" = {
"id" = "text",
"label" = @Translation("availableLanguage"),
"description" = @Translation("Details about the language spoken. Languages may be specified by their common English name. If omitted, the language defaults to English. Examples: ""English, Spanish""."),
},
"contactType" = {
"id" = "text",
"label" = @Translation("contactType"),
"description" = @Translation("One of the following: customer service, technical support, billing support, bill payment, sales, reservations, credit card support, emergency, baggage tracking, roadside assistance, package tracking."),
},
"contactOption" = {
"id" = "text",
"label" = @Translation("contactOption"),
"description" = @Translation("One of the following: HearingImpairedSupported, TollFree."),
},
"productSupported" = {
"id" = "text",
"label" = @Translation("productSupported"),
"description" = @Translation("The product or service this support contact point is related to (such as product support for a particular product line). This can be a specific product or product line (e.g. ""iPhone"") or a general category of products or services (e.g. ""smartphones"")."),
},
"areaServed" = {
"id" = "place",
"label" = @Translation("areaServed"),
"description" = @Translation("The geographical region served by the number, specified as a AdministrativeArea. If omitted, the number is assumed to be global."),
"tree_parent" = {
"AdministrativeArea",
},
"tree_depth" = -1,
},
},
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\schema_metatag\Plugin\schema_metatag\PropertyTypeBase implements ContainerFactoryPluginInterface, PropertyTypeInterface, SchemaMetatagTestTagInterface uses StringTranslationTrait
- class \Drupal\schema_metatag\Plugin\schema_metatag\PropertyType\ContactPoint
- class \Drupal\schema_metatag\Plugin\schema_metatag\PropertyTypeBase implements ContainerFactoryPluginInterface, PropertyTypeInterface, SchemaMetatagTestTagInterface uses StringTranslationTrait
Expanded class hierarchy of ContactPoint
File
- src/
Plugin/ schema_metatag/ PropertyType/ ContactPoint.php, line 76
Namespace
Drupal\schema_metatag\Plugin\schema_metatag\PropertyTypeView source
class ContactPoint extends PropertyTypeBase {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
PropertyTypeBase:: |
protected | property | The propertyTypeManager service. | |
PropertyTypeBase:: |
protected | property | The SchemaMetatagClient service. | |
PropertyTypeBase:: |
protected | property | The schemaMetatagManager service. | |
PropertyTypeBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
PropertyTypeBase:: |
public | function |
Create a complete form element for this property type. Overrides PropertyTypeInterface:: |
1 |
PropertyTypeBase:: |
public | function |
A property form element. Overrides PropertyTypeInterface:: |
5 |
PropertyTypeBase:: |
public | function |
Get an instance of a child property type. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
Create an option list for a given tree section. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
The property type. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
The sub-properties. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
Get some or all of the object tree as options for @type. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
The depth of the class tree to use for @type options. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
The classes to use for the @type options of this property. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
Construct the visibility selector for a set of values. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
Transform input value to its display output. Overrides PropertyTypeInterface:: |
2 |
PropertyTypeBase:: |
public | function |
Pivot form element. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
Provide a test output value for the input value. Overrides SchemaMetatagTestTagInterface:: |
|
PropertyTypeBase:: |
public | function |
Explode a test value. Overrides SchemaMetatagTestTagInterface:: |
|
PropertyTypeBase:: |
public | function |
Get all the properties of a property type. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
The Schema Metatag Client service. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function |
The Schema Metatag Manager service. Overrides PropertyTypeInterface:: |
|
PropertyTypeBase:: |
public | function | Sets PropertyTypeManager service. | |
PropertyTypeBase:: |
public | function | Sets SchemaMetatagClient service. | |
PropertyTypeBase:: |
public | function | Sets schemaMetatagManager service. | |
PropertyTypeBase:: |
public | function |
Provide a random test value. Overrides SchemaMetatagTestTagInterface:: |
|
PropertyTypeBase:: |
public | function |
Provide a test input value for the property that will validate. Overrides SchemaMetatagTestTagInterface:: |
3 |
PropertyTypeBase:: |
public static | function |
Validates the property form when submitted. Overrides PropertyTypeInterface:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |