You are here

class LinkLinkExtractor in Link checker 8

Class LinkLinkExtractor.

Plugin annotation


@LinkExtractor(
  id = "link_link_extractor",
  label = @Translation("Link extractor"),
  field_types = {
    "link"
  }
)

Hierarchy

Expanded class hierarchy of LinkLinkExtractor

File

src/Plugin/LinkExtractor/LinkLinkExtractor.php, line 18

Namespace

Drupal\linkchecker\Plugin\LinkExtractor
View 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

Namesort descending Modifiers Type Description Overrides
LinkExtractorBase::$linkcheckerSetting protected property The Linkchecker settings.
LinkExtractorBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
LinkExtractorBase::extract public function Extracts links from field list. Overrides LinkExtractorInterface::extract
LinkExtractorBase::__construct public function LinkExtractorBase plugin constructor. Overrides PluginBase::__construct
LinkLinkExtractor::extractUrlFromField protected function Extracts a URLs from field. Overrides LinkExtractorBase::extractUrlFromField
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.