You are here

interface EmbedTrackInterface in Entity Usage 8

Same name and namespace in other branches
  1. 8.4 src/EmbedTrackInterface.php \Drupal\entity_usage\EmbedTrackInterface
  2. 8.2 src/EmbedTrackInterface.php \Drupal\entity_usage\EmbedTrackInterface
  3. 8.3 src/EmbedTrackInterface.php \Drupal\entity_usage\EmbedTrackInterface

Defines the interface for tracking plugins that embed entities in WYSIWYG.

Hierarchy

Expanded class hierarchy of EmbedTrackInterface

All classes that implement EmbedTrackInterface

1 file declares its use of EmbedTrackInterface
EmbedBase.php in src/Plugin/EntityUsage/Track/EmbedBase.php

File

src/EmbedTrackInterface.php, line 8

Namespace

Drupal\entity_usage
View source
interface EmbedTrackInterface extends EntityUsageTrackInterface {

  /**
   * Parse an HTML snippet looking for embedded entities.
   *
   * @param string $text
   *   The partial (X)HTML snippet to load. Invalid markup will be corrected on
   *   import.
   *
   * @return array
   *   An array of all embedded entities found, where keys are the uuids and the
   *   values are the entity types.
   */
  public function parseEntitiesFromText($text);

}

Members

Namesort descending Modifiers Type Description Overrides
EmbedTrackInterface::parseEntitiesFromText public function Parse an HTML snippet looking for embedded entities. 2
EntityUsageTrackInterface::getDescription public function Returns the tracking method description. 1
EntityUsageTrackInterface::getId public function Returns the tracking method unique id. 1
EntityUsageTrackInterface::getLabel public function Returns the tracking method label. 1
EntityUsageTrackInterface::trackOnEntityCreation public function Track usage updates on the creation of entities. 1
EntityUsageTrackInterface::trackOnEntityDeletion public function Track usage updates on the deletion of entities. 1
EntityUsageTrackInterface::trackOnEntityUpdate public function Track usage updates on the edition of entities. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2