LinkItDetector.php in Lingotek Translation 3.8.x
File
src/Plugin/RelatedEntitiesDetector/LinkItDetector.php
View source
<?php
namespace Drupal\lingotek\Plugin\RelatedEntitiesDetector;
class LinkItDetector extends EditorDetectorBase {
protected $fieldTypes = [
"text",
"text_long",
"text_with_summary",
];
protected $xpath = "//a[@data-entity-type and @data-entity-uuid]";
}
Classes
Name |
Description |
LinkItDetector |
@RelatedEntitiesDetector (
id = "linkit_detector",
title =
Plugin annotation
@Translation("Get editor linked entities with LinkIt module"),
description = @translation("Get editor linked entities with LinkIt module"),
weight = 7,
) |