You are here

class SchemaPlaceType in Schema.org Metatag 7

Provides a plugin for the '@type' meta tag.

Hierarchy

Expanded class hierarchy of SchemaPlaceType

1 string reference to 'SchemaPlaceType'
schema_place_metatag_info in schema_place/schema_place.metatag.inc
Implements hook_metatag_info().

File

schema_place/src/SchemaPlaceType.php, line 6

View source
class SchemaPlaceType extends SchemaTypeBase {

  /**
   * {@inheritdoc}
   */
  public static function labels() {
    return [
      'Place',
      '- Accommodation',
      '-- Apartment',
      '-- CampingPitch',
      '-- House',
      '--- SingleFamilyResidence',
      '-- Room',
      '--- HotelRoom',
      '--- MeetingRoom',
      '-- Suite',
      '- AdministrativeArea',
      '-- City',
      '-- Country',
      '-- SchoolDistrict',
      '-- State',
      '- CivicStructure',
      '-- Airport',
      '-- Aquarium',
      '-- Beach',
      '-- Bridge',
      '-- BusStation',
      '-- BusStop',
      '-- Campground',
      '-- Cemetery',
      '-- Crematorium',
      '-- EducationalOrganization',
      '-- EventVenue',
      '-- FireStation',
      '-- GovernmentBuilding',
      '--- CityHall',
      '--- Courthouse',
      '--- DefenceEstablishment',
      '--- Embassy',
      '--- LegislativeBuilding',
      '-- Hospital',
      '-- MovieTheater',
      '-- Museum',
      '-- MusicVenue',
      '-- Park',
      '-- ParkingFacility',
      '-- PerformingArtsTheater',
      '-- PlaceOfWorship',
      '--- BuddhistTemple',
      '--- Church',
      '---- CatholicChurch',
      '--- HinduTemple',
      '--- Mosque',
      '--- Synagogue',
      '-- Playground',
      '-- PoliceStation',
      '-- PublicToilet',
      '-- RVPark',
      '-- StadiumOrArena',
      '-- SubwayStation',
      '-- TaxiStand',
      '-- TrainStation',
      '-- Zoo',
      '- Landform',
      '-- BodyOfWater',
      '--- Canal',
      '--- LakeBodyOfWater',
      '--- OceanBodyOfWater',
      '--- Pond',
      '--- Reservoir',
      '--- RiverBodyOfWater',
      '--- SeaBodyOfWater',
      '--- Waterfall',
      '-- Continent',
      '-- Mountain',
      '-- Volcano',
      '- LandmarksOrHistoricalBuildings',
      '- LocalBusiness',
      '- Residence',
      '--- ApartmentComplex',
      '--- GatedResidenceCommunity',
      '- TouristAttraction',
      '- TouristDestination',
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalDefaultMetaTag::$data protected property The values submitted for this tag.
DrupalDefaultMetaTag::$info protected property All of the basic information about this tag.
DrupalDefaultMetaTag::$weight protected property This item's weight; used for sorting the output.
DrupalDefaultMetaTag::convertUrlToAbsolute protected function Make sure a given URL is absolute.
DrupalDefaultMetaTag::getWeight public function Calculate the weight of this meta tag. Overrides DrupalMetaTagInterface::getWeight
DrupalDefaultMetaTag::maxlength protected function Identify the maximum length of which strings will be allowed.
DrupalDefaultMetaTag::textSummary public static function Copied from text.module with the following changes:. Overrides DrupalMetaTagInterface::textSummary
DrupalDefaultMetaTag::tidyValue protected function Remove unwanted formatting from a meta tag.
DrupalDefaultMetaTag::truncate protected function Shorten a string to a certain length using ::textSummary().
DrupalTextMetaTag::getValue public function Get the string value of this meta tag. Overrides DrupalDefaultMetaTag::getValue 1
SchemaNameBase::$schemaMetatagManager protected property The schemaMetatagManager service.
SchemaNameBase::description public function
SchemaNameBase::getElement public function Get the HTML tag for this meta tag. Overrides DrupalDefaultMetaTag::getElement 1
SchemaNameBase::getPluginId public function
SchemaNameBase::label public function
SchemaNameBase::multiple public function
SchemaNameBase::neverExplode public static function Nested elements that cannot be exploded.
SchemaNameBase::outputValue public static function Transform input value to its display output. Overrides SchemaMetatagTestTagInterface::outputValue 2
SchemaNameBase::pivotItem public static function
SchemaNameBase::processedTestValue public static function Provide a test output value for the input value. Overrides SchemaMetatagTestTagInterface::processedTestValue 17
SchemaNameBase::processItem protected function Process an individual item.
SchemaNameBase::processTestExplodeValue public static function Explode a test value. Overrides SchemaMetatagTestTagInterface::processTestExplodeValue
SchemaNameBase::randomUrl public static function Random absolute url for testing. Overrides SchemaMetatagTestTagInterface::randomUrl
SchemaNameBase::schemaMetatagManager protected function Return the SchemaMetatagManager.
SchemaNameBase::t public function
SchemaNameBase::testDefaultValue public static function Provide a random test value. Overrides SchemaMetatagTestTagInterface::testDefaultValue
SchemaNameBase::value public function
SchemaNameBase::visibilitySelector protected function The #states visibility selector for this element.
SchemaNameBase::__construct function Constructor. Overrides DrupalDefaultMetaTag::__construct 1
SchemaPlaceType::labels public static function Return a list of object labels. Overrides SchemaTypeBase::labels
SchemaTypeBase::getForm public function Generate a form element for this meta tag. Overrides SchemaNameBase::getForm
SchemaTypeBase::removePrefix public static function Clean up a list of labels by removing leading spaces and dashes.
SchemaTypeBase::testValue public static function Provide a test input value for the property that will validate. Overrides SchemaNameBase::testValue
SchemaTypeBase::typeOptions public function Turn the list of types into an option list.
SchemaTypeBase::types public static function Return a list of object types.