You are here

SynonymsProvider.php in Synonyms 8

File

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

namespace Drupal\synonyms\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Annotation for synonyms provider plugin instance.
 *
 * @Annotation
 */
class SynonymsProvider extends Plugin {

  /**
   * Machine readable name of this plugin.
   *
   * @var string
   */
  public $id;

  /**
   * Human readable name of this plugin.
   *
   * @var string
   */
  public $label;

  /**
   * Synonyms behavior service ID into which this plugin provides synonyms.
   *
   * Synonyms behaviors are the services with the tag 'synonyms_behavior'.
   *
   * @var string
   */
  public $synonyms_behavior_service;

  /**
   * Entity type which is controlled by ths plugin.
   *
   * Entity type into which this plugin provides synonyms.
   *
   * @var string
   */
  public $controlled_entity_type;

  /**
   * Bundle which is controlled by this plugin.
   *
   * Bundle into which this plugin provides synonyms. If the entity type does
   * not support bundles, just put here the entity type.
   *
   * @var string
   */
  public $controlled_bundle;

}

Classes

Namesort descending Description
SynonymsProvider Annotation for synonyms provider plugin instance.