metatag-8.x-1.x-dev/metatag_mobile/src/Plugin/metatag/Tag/HandheldFriendly.php

metatag_mobile/src/Plugin/metatag/Tag/HandheldFriendly.php
<?php

namespace Drupal\metatag_mobile\Plugin\metatag\Tag;

use Drupal\metatag\Plugin\metatag\Tag\MetaNameBase;

/**
 * The Handheld Friendly for Mobile metatag.
 *
 * @MetatagTag(
 *   id = "handheldfriendly",
 *   label = @Translation("Handheld-Friendly"),
 *   description = @Translation("Some older mobile browsers will expect this meta tag to be set to 'true' to indicate that the site has been designed with mobile browsers in mind."),
 *   name = "HandheldFriendly",
 *   group = "mobile",
 *   weight = 83,
 *   type = "string",
 *   secure = FALSE,
 *   multiple = TRUE
 * )
 */
class HandheldFriendly extends MetaNameBase {

  /**
   * {@inheritdoc}
   */
  public function getTestOutputExistsXpath(): array {
    // @todo The output from this meta tag is not overriding core.
    // @see metatag_mobile_page_attachments_alter()
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getTestOutputValuesXpath(array $values): array {
    // @todo The output from this meta tag is not overriding core.
    // @see metatag_mobile_page_attachments_alter()
    return [];
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc