protected function LinkLinkExtractor::extractUrlFromField in Link checker 8
Extracts a URLs from field.
Return value
array Array of URLs.
Overrides LinkExtractorBase::extractUrlFromField
File
- src/
Plugin/ LinkExtractor/ LinkLinkExtractor.php, line 23
Class
- LinkLinkExtractor
- Class LinkLinkExtractor.
Namespace
Drupal\linkchecker\Plugin\LinkExtractorCode
protected function extractUrlFromField(array $value) {
// Return the uri index from the $value array.
return empty($value['uri']) ? [] : [
$value['uri'],
];
}