class LinkLinkExtractor in Link checker 8
Class LinkLinkExtractor.
Plugin annotation
@LinkExtractor(
id = "link_link_extractor",
label = @Translation("Link extractor"),
field_types = {
"link"
}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\linkchecker\Plugin\LinkExtractorBase implements ContainerFactoryPluginInterface, LinkExtractorInterface
- class \Drupal\linkchecker\Plugin\LinkExtractor\LinkLinkExtractor
- class \Drupal\linkchecker\Plugin\LinkExtractorBase implements ContainerFactoryPluginInterface, LinkExtractorInterface
Expanded class hierarchy of LinkLinkExtractor
File
- src/
Plugin/ LinkExtractor/ LinkLinkExtractor.php, line 18
Namespace
Drupal\linkchecker\Plugin\LinkExtractorView source
class LinkLinkExtractor extends LinkExtractorBase {
/**
* {@inheritdoc}
*/
protected function extractUrlFromField(array $value) {
// Return the uri index from the $value array.
return empty($value['uri']) ? [] : [
$value['uri'],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkExtractorBase:: |
protected | property | The Linkchecker settings. | |
LinkExtractorBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
LinkExtractorBase:: |
public | function |
Extracts links from field list. Overrides LinkExtractorInterface:: |
|
LinkExtractorBase:: |
public | function |
LinkExtractorBase plugin constructor. Overrides PluginBase:: |
|
LinkLinkExtractor:: |
protected | function |
Extracts a URLs from field. Overrides LinkExtractorBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. |