public function EmbedTrackInterface::parseEntitiesFromText in Entity Usage 8
Same name and namespace in other branches
- 8.4 src/EmbedTrackInterface.php \Drupal\entity_usage\EmbedTrackInterface::parseEntitiesFromText()
- 8.2 src/EmbedTrackInterface.php \Drupal\entity_usage\EmbedTrackInterface::parseEntitiesFromText()
- 8.3 src/EmbedTrackInterface.php \Drupal\entity_usage\EmbedTrackInterface::parseEntitiesFromText()
Parse an HTML snippet looking for embedded entities.
Parameters
string $text: The partial (X)HTML snippet to load. Invalid markup will be corrected on import.
Return value
array An array of all embedded entities found, where keys are the uuids and the values are the entity types.
1 call to EmbedTrackInterface::parseEntitiesFromText()
- EmbedBase::getEmbeddedEntitiesByField in src/
Plugin/ EntityUsage/ Track/ EmbedBase.php - Finds all entities embedded (<drupal-entity>) by formatted text fields.
2 methods override EmbedTrackInterface::parseEntitiesFromText()
- EntityEmbed::parseEntitiesFromText in src/
Plugin/ EntityUsage/ Track/ EntityEmbed.php - Parse an HTML snippet looking for embedded entities.
- LinkIt::parseEntitiesFromText in src/
Plugin/ EntityUsage/ Track/ LinkIt.php - Parse an HTML snippet looking for embedded entities.
File
- src/
EmbedTrackInterface.php, line 21
Class
- EmbedTrackInterface
- Defines the interface for tracking plugins that embed entities in WYSIWYG.
Namespace
Drupal\entity_usageCode
public function parseEntitiesFromText($text);