public function EmbedTrackInterface::parseEntitiesFromText in Entity Usage 8.4
Same name and namespace in other branches
- 8 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()
- TextFieldEmbedBase::getTargetEntities in src/
Plugin/ EntityTrack/ Track/ TextFieldEmbedBase.php - Retrieve the target entity(ies) from a field item value.
4 methods override EmbedTrackInterface::parseEntitiesFromText()
- EntityEmbed::parseEntitiesFromText in src/
Plugin/ EntityTrack/ Track/ EntityEmbed.php - Parse an HTML snippet looking for embedded entities.
- HtmlLink::parseEntitiesFromText in src/
Plugin/ EntityTrack/ Track/ HtmlLink.php - Parse an HTML snippet looking for embedded entities.
- LinkIt::parseEntitiesFromText in src/
Plugin/ EntityTrack/ Track/ LinkIt.php - Parse an HTML snippet looking for embedded entities.
- MediaEmbed::parseEntitiesFromText in src/
Plugin/ EntityTrack/ Track/ MediaEmbed.php - Parse an HTML snippet looking for embedded entities.
File
- src/
EmbedTrackInterface.php, line 23
Class
- EmbedTrackInterface
- Defines the interface for tracking plugins that embed entities in WYSIWYG.
Namespace
Drupal\entity_usageCode
public function parseEntitiesFromText($text);