You are here

class Provider in Synonyms 2.0.x

Annotation for synonyms provider plugin instance.

Hierarchy

Expanded class hierarchy of Provider

1 file declares its use of Provider
ProviderPluginManager.php in src/ProviderPluginManager.php
1 string reference to 'Provider'
SynonymConfigController::entityTypeBundleProviders in src/Controller/SynonymConfigController.php
Routing callback to overview a particular entity type providers.
3 classes are annotated with Provider
BaseField in src/Plugin/Synonyms/Provider/BaseField.php
Provide synonyms from base fields.
EntityReferenceField in src/Plugin/Synonyms/Provider/EntityReferenceField.php
Provide synonyms from entity reference field type.
Field in src/Plugin/Synonyms/Provider/Field.php
Provide synonyms from attached simple fields.

File

src/Annotation/Provider.php, line 12

Namespace

Drupal\synonyms\Annotation
View source
class Provider extends Plugin {

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

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

  /**
   * 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;

  /**
   * The field which provides synonyms.
   *
   * @var string
   */
  public $field;

}

Members

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider 1
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
Provider::$controlled_bundle public property Bundle which is controlled by this plugin.
Provider::$controlled_entity_type public property Entity type which is controlled by ths plugin.
Provider::$field public property The field which provides synonyms.
Provider::$id public property Machine readable name of this plugin.
Provider::$label public property Human readable name of this plugin.