You are here

SchemaServiceType.php in Schema.org Metatag 8

Same filename and directory in other branches
  1. 8.2 schema_service/src/Plugin/metatag/Tag/SchemaServiceType.php

File

schema_service/src/Plugin/metatag/Tag/SchemaServiceType.php
View source
<?php

namespace Drupal\schema_service\Plugin\metatag\Tag;

use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaTypeBase;

/**
 * Provides a plugin for the '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.
 *
 * @MetatagTag(
 *   id = "schema_service_type",
 *   label = @Translation("@type"),
 *   description = @Translation("REQUIRED. The type of service."),
 *   name = "@type",
 *   group = "schema_service",
 *   weight = -10,
 *   type = "string",
 *   secure = FALSE,
 *   multiple = FALSE
 * )
 */
class SchemaServiceType extends SchemaTypeBase {

  /**
   * {@inheritdoc}
   */
  public static function labels() {
    return [
      'Service',
      'BroadcastService',
      'CableOrSatelliteService',
      'FinancialProduct',
      '- BankAccount',
      '-- DepositAccount',
      '- CurrencyConversionService',
      '- InvestmentOrDeposit',
      '-- DepositAccount',
      '- LoanOrCredit',
      '-- CreditCard',
      '- PaymentCard',
      '- PaymentService',
      'FoodService',
      'GovernmentService',
      'TaxiService',
    ];
  }

}

Classes

Namesort descending Description
SchemaServiceType Provides a plugin for the 'type' meta tag.