You are here

class EntityEmbedDetector in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 4.0.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
  2. 3.6.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
  3. 3.7.x src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector
  4. 3.8.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\lingotek\Plugin\RelatedEntitiesDetector\EntityEmbedDetector extends \Drupal\lingotek\Plugin\RelatedEntitiesDetector\EditorDetectorBase

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\RelatedEntitiesDetector
View 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