You are here

interface EmbedTrackInterface in Entity Usage 8.4

Same name and namespace in other branches
  1. 8 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

  • interface \Drupal\entity_usage\EmbedTrackInterface extends \Drupal\entity_track\EntityTrackInterface

Expanded class hierarchy of EmbedTrackInterface

All classes that implement EmbedTrackInterface

1 file declares its use of EmbedTrackInterface
TextFieldEmbedBase.php in src/Plugin/EntityTrack/Track/TextFieldEmbedBase.php

File

src/EmbedTrackInterface.php, line 10

Namespace

Drupal\entity_usage
View source
interface EmbedTrackInterface extends EntityTrackInterface {

  /**
   * 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. 4