SynonymsProvider.php in Synonyms 8
Namespace
Drupal\synonyms\AnnotationFile
src/Annotation/SynonymsProvider.phpView 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
Name | Description |
---|---|
SynonymsProvider | Annotation for synonyms provider plugin instance. |