You are here

Matcher.php in Linkit 8.4

Same filename and directory in other branches
  1. 8.5 src/Annotation/Matcher.php

File

src/Annotation/Matcher.php
View source
<?php

/**
 * @file
 * Contains \Drupal\linkit\Annotation\Matcher.
 */
namespace Drupal\linkit\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a matcher annotation object.
 *
 * Plugin Namespace: Plugin\Linkit\Matcher
 *
 * @see \Drupal\linkit\MatcherInterface
 * @see \Drupal\linkit\MatcherBase
 * @see \Drupal\linkit\MatcherManager
 * @see plugin_api
 *
 * @Annotation
 */
class Matcher extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the matcher.
   *
   * The string should be wrapped in a @Translation().
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The entity type that is managed by this matcher.
   *
   * @var string
   */
  public $entity_type;

}

Classes

Namesort descending Description
Matcher Defines a matcher annotation object.