Copied!
CloneableFinalInstantiable
Constants
public League\CommonMark\Extension\ExternalLink\ExternalLinkProcessor::APPLY_ALL = 'all'
public League\CommonMark\Extension\ExternalLink\ExternalLinkProcessor::APPLY_EXTERNAL = 'external'
public League\CommonMark\Extension\ExternalLink\ExternalLinkProcessor::APPLY_INTERNAL = 'internal'
public League\CommonMark\Extension\ExternalLink\ExternalLinkProcessor::APPLY_NONE = ''
Methods
public __construct(League\Config\ConfigurationInterface $config)
public __invoke(League\CommonMark\Event\DocumentParsedEvent $e) : void
public static hostMatches(string $host, $compareTo) : bool
 
  • internal This method is only public so we can easily test it. DO NOT USE THIS OUTSIDE OF THIS EXTENSION!
  • param non-empty-string|list<non-empty-string> $compareTo
Properties
private League\Config\ConfigurationInterface $config
 
  • psalm-readonly
Methods
private applyRelAttribute(League\CommonMark\Extension\CommonMark\Node\Inline\Link $link, bool $isExternal) : void
private markLinkAsExternal(League\CommonMark\Extension\CommonMark\Node\Inline\Link $link, bool $openInNewWindow, string $classes) : void
Methods
public static hostMatches(string $host, $compareTo) : bool
 
  • internal This method is only public so we can easily test it. DO NOT USE THIS OUTSIDE OF THIS EXTENSION!
  • param non-empty-string|list<non-empty-string> $compareTo
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration