EntityEmbedDetector.php in Lingotek Translation 3.7.x
File
src/Plugin/RelatedEntitiesDetector/EntityEmbedDetector.php
View source
<?php
namespace Drupal\lingotek\Plugin\RelatedEntitiesDetector;
class EntityEmbedDetector extends EditorDetectorBase {
protected $fieldTypes = [
"text",
"text_long",
"text_with_summary",
];
protected $xpath = "//drupal-entity[@data-entity-type and @data-entity-uuid]";
}
Classes
Name |
Description |
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… |