class EntityEmbedDetector in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 4.0.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
- 3.5.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
- 3.6.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
- 3.7.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
@RelatedEntitiesDetector ( id = "entity_embed_detector", title =
Plugin annotation
@Translation("Get editor embedded entities with entity_embed module"),
description = @translation("Get editor embedded entities with entity_embed module"),
weight = 7,
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EditorDetectorBase implements ContainerFactoryPluginInterface, RelatedEntitiesDetectorInterface
- class \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
- class \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EditorDetectorBase implements ContainerFactoryPluginInterface, RelatedEntitiesDetectorInterface
Expanded class hierarchy of EntityEmbedDetector
1 file declares its use of EntityEmbedDetector
- EntityEmbedDetectorTest.php in tests/
src/ Unit/ Plugin/ RelatedEntitiesDetector/ EntityEmbedDetectorTest.php
File
- src/
Plugin/ RelatedEntitiesDetector/ EntityEmbedDetector.php, line 13
Namespace
Drupal\lingotek\Plugin\RelatedEntitiesDetectorView source
class EntityEmbedDetector extends EditorDetectorBase {
/**
* {@inheritdoc}
*/
protected $fieldTypes = [
"text",
"text_long",
"text_with_summary",
];
/**
* {@inheritdoc}
*/
protected $xpath = "//drupal-entity[@data-entity-type and @data-entity-uuid]";
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EditorDetectorBase:: |
protected | property | The entity field manager. | |
EditorDetectorBase:: |
protected | property | The EntityRepository service. | |
EditorDetectorBase:: |
protected | property | The Lingotek configuration service. | |
EditorDetectorBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
1 |
EditorDetectorBase:: |
public | function |
Extract nested and related content. Overrides RelatedEntitiesDetectorInterface:: |
|
EditorDetectorBase:: |
protected | function | Extract entities referenced by a given text. | 1 |
EditorDetectorBase:: |
public | function |
NestedEntityReferences constructor. Overrides PluginBase:: |
1 |
EntityEmbedDetector:: |
protected | property |
The field types this detector applies to. Overrides EditorDetectorBase:: |
|
EntityEmbedDetector:: |
protected | property |
The XPath to find embedded content. Overrides EditorDetectorBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. |