class SchemaOrganizationType in Schema.org Metatag 8
Same name and namespace in other branches
- 8.2 schema_organization/src/Plugin/metatag/Tag/SchemaOrganizationType.php \Drupal\schema_organization\Plugin\metatag\Tag\SchemaOrganizationType
Provides a plugin for the 'schema_organization_type' meta tag.
- 'id' should be a globally unique id.
- 'name' should match the Schema.org element name.
- 'group' should match the id of the group that defines the Schema.org type.
Plugin annotation
@MetatagTag(
id = "schema_organization_type",
label = @Translation("@type"),
description = @Translation("REQUIRED. The type of organization."),
name = "@type",
group = "schema_organization",
weight = -10,
type = "string",
secure = FALSE,
multiple = FALSE
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\metatag\Plugin\metatag\Tag\MetaNameBase uses StringTranslationTrait
- class \Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase implements ContainerFactoryPluginInterface, SchemaMetatagTestTagInterface
- class \Drupal\schema_metatag\Plugin\metatag\Tag\SchemaTypeBase
- class \Drupal\schema_organization\Plugin\metatag\Tag\SchemaOrganizationType
- class \Drupal\schema_metatag\Plugin\metatag\Tag\SchemaTypeBase
- class \Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase implements ContainerFactoryPluginInterface, SchemaMetatagTestTagInterface
- class \Drupal\metatag\Plugin\metatag\Tag\MetaNameBase uses StringTranslationTrait
Expanded class hierarchy of SchemaOrganizationType
File
- schema_organization/
src/ Plugin/ metatag/ Tag/ SchemaOrganizationType.php, line 26
Namespace
Drupal\schema_organization\Plugin\metatag\TagView source
class SchemaOrganizationType extends SchemaTypeBase {
/**
* {@inheritdoc}
*/
public static function labels() {
return [
'Organization',
'Airline',
'Corporation',
'EducationalOrganization',
'- CollegeOrUniversity',
'- ElementarySchool',
'- HighSchool',
'- MiddleSchool',
'- Preschool',
'- School',
'GovernmentOrganization',
'LocalBusiness',
'- AnimalShelter',
'- AutomotiveBusiness',
'-- AutoBodyShop',
'-- AutoDealer',
'-- AutoPartsStore',
'-- AutoRental',
'-- AutoRepair',
'-- AutoWash',
'-- GasStation',
'-- MotorcycleDealer',
'-- MotorcycleRepair',
'- ChildCare',
'- Dentist',
'- DryCleaningOrLaundry',
'- EmergencyService',
'-- FireStation',
'-- Hospital',
'-- PoliceStation',
'- EmploymentAgency',
'- EntertainmentBusiness',
'-- AdultEntertainment',
'-- AmusementPark',
'-- ArtGallery',
'-- Casino',
'-- ComedyClub',
'-- MovieTheater',
'-- NightClub',
'- FinancialService',
'-- AccountingService',
'-- AutomatedTeller',
'-- BankOrCreditUnion',
'-- InsuranceAgency',
'- FoodEstablishment',
'-- Bakery',
'-- BarOrPub',
'-- Brewery',
'-- CafeOrCoffeeShop',
'-- FastFoodRestaurant',
'-- IceCreamShop',
'-- Restaurant',
'-- Winery',
'- GovernmentOffice',
'-- PostOffice',
'- HealthAndBeautyBusiness',
'-- BeautySalon',
'-- DaySpa',
'-- HairSalon',
'-- HealthClub',
'-- NailSalon',
'-- TattooParlor',
'- HomeAndConstructionBusiness',
'-- Electrician',
'-- GeneralContractor',
'-- HVACBusiness',
'-- HousePainter',
'-- Locksmith',
'-- MovingCompany',
'-- Plumber',
'-- RoofingContractor',
'- InternetCafe',
'- LegalService',
'-- Attorney',
'-- Notary',
'- Library',
'- LodgingBusiness',
'-- BedAndBreakfast',
'-- Campground',
'-- Hostel',
'-- Hotel',
'-- Motel',
'-- Resort',
'- ProfessionalService',
'- RadioStation',
'- RealEstateAgent',
'- RecyclingCenter',
'- SelfStorage',
'- ShoppingCenter',
'- SportsActivityLocation',
'-- BowlingAlley',
'-- ExerciseGym',
'-- GolfCourse',
'-- HealthClub',
'-- PublicSwimmingPool',
'-- SkiResort',
'-- SportsClub',
'-- StadiumOrArena',
'-- TennisComplex',
'- Store',
'-- AutoPartsStore',
'-- BikeStore',
'-- BookStore',
'-- ClothingStore',
'-- ComputerStore',
'-- ConvenienceStore',
'-- DepartmentStore',
'-- ElectronicsStore',
'-- Florist',
'-- FurnitureStore',
'-- GardenStore',
'-- GroceryStore',
'-- HardwareStore',
'-- HobbyShop',
'-- HomeGoodsStore',
'-- JewelryStore',
'-- LiquorStore',
'-- MensClothingStore',
'-- MobilePhoneStore',
'-- MovieRentalStore',
'-- MusicStore',
'-- OfficeEquipmentStore',
'-- OutletStore',
'-- PawnShop',
'-- PetStore',
'-- ShoeStore',
'-- SportingGoodsStore',
'-- TireShop',
'-- ToyStore',
'-- WholesaleStore',
'- TelevisionStation',
'- TouristInformationCenter',
'- TravelAgency',
'MedicalOrganization',
'- Dentist',
'- Hospital',
'- Pharmacy',
'- Physician',
'NGO',
'PerformingGroup',
'- DanceGroup',
'- MusicGroup',
'- TheaterGroup',
'SportsOrganization',
'- SportsTeam',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetaNameBase:: |
protected | property | True if the URL value(s) must be absolute. | |
MetaNameBase:: |
protected | property | A longer explanation of what the field is for. | |
MetaNameBase:: |
protected | property | The category this meta tag fits in. | |
MetaNameBase:: |
protected | property | Machine name of the meta tag plugin. | |
MetaNameBase:: |
protected | property | The title of the plugin. | |
MetaNameBase:: |
protected | property | True if the tag should use a text area. | |
MetaNameBase:: |
protected | property | True if more than one is allowed. | |
MetaNameBase:: |
protected | property | Official metatag name. | 1 |
MetaNameBase:: |
protected | property | The attribute this tag uses for the name. | 3 |
MetaNameBase:: |
protected | property | Retrieves the currently active request object. | |
MetaNameBase:: |
protected | property | True if URL must use HTTPS. | |
MetaNameBase:: |
protected | property | Type of the value being stored. | |
MetaNameBase:: |
protected | property | The value of the metatag in this instance. | |
MetaNameBase:: |
public | function | The meta tag's description. | |
MetaNameBase:: |
public | function | The meta tag group this meta tag belongs to. | |
MetaNameBase:: |
public | function | Obtain the meta tag's internal ID. | |
MetaNameBase:: |
public | function | Whether or not this meta tag is active. | |
MetaNameBase:: |
public | function | Whether or not this meta tag should use a text area. | |
MetaNameBase:: |
public | function | This meta tag's label. | |
MetaNameBase:: |
public | function | Whether or not this meta tag supports multiple values. | |
MetaNameBase:: |
public | function | The meta tag's machine name. | 1 |
MetaNameBase:: |
protected | function | Extract any image URLs that might be found in a meta tag. | |
MetaNameBase:: |
public | function | Whether or not this meta tag must output required absolute URLs. | |
MetaNameBase:: |
public | function | Whether or not this meta tag must output secure (HTTPS) URLs. | |
MetaNameBase:: |
private | function | Make the string presentable. | |
MetaNameBase:: |
public | function | Obtain this meta tag's type. | |
MetaNameBase:: |
public static | function | Validates the metatag data. | |
MetaNameBase:: |
public | function | This meta tag's form field's weight. | |
MetaNameBase:: |
public | function |
Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: |
|
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. | |
SchemaNameBase:: |
protected | property | The schemaMetatagManager service. | |
SchemaNameBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
SchemaNameBase:: |
protected | function | Nested elements that cannot be exploded. | |
SchemaNameBase:: |
public | function |
Generate the HTML tag output for a meta tag. Overrides MetaNameBase:: |
1 |
SchemaNameBase:: |
public static | function |
Transform input value to its display output. Overrides SchemaMetatagTestTagInterface:: |
2 |
SchemaNameBase:: |
protected | function | Parse the image url out of image markup. | |
SchemaNameBase:: |
public static | function | ||
SchemaNameBase:: |
public static | function |
Provide a test output value for the input value. Overrides SchemaMetatagTestTagInterface:: |
17 |
SchemaNameBase:: |
protected | function | ||
SchemaNameBase:: |
public static | function |
Explode a test value. Overrides SchemaMetatagTestTagInterface:: |
|
SchemaNameBase:: |
protected | function | Return the SchemaMetatagManager. | |
SchemaNameBase:: |
public | function | Sets schemaMetatagManager service. | |
SchemaNameBase:: |
public | function |
Metatag expects a string value, so serialize any array of values. Overrides MetaNameBase:: |
|
SchemaNameBase:: |
public static | function |
Provide a random test value. Overrides SchemaMetatagTestTagInterface:: |
|
SchemaNameBase:: |
public | function |
The serialized value for the metatag. Overrides MetaNameBase:: |
|
SchemaNameBase:: |
protected | function | The #states base visibility selector for this element. | |
SchemaOrganizationType:: |
public static | function |
Return a list of object labels. Overrides SchemaTypeBase:: |
|
SchemaTypeBase:: |
public | function |
Generate a form element for this meta tag. Overrides MetaNameBase:: |
|
SchemaTypeBase:: |
public static | function | Clean up a list of labels by removing leading spaces and dashes. | |
SchemaTypeBase:: |
public static | function |
Provide a test input value for the property that will validate. Overrides SchemaNameBase:: |
|
SchemaTypeBase:: |
public | function | Turn the list of types into an option list. | |
SchemaTypeBase:: |
public static | function | Return a list of object types. | |
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. |