Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.08 KB

File metadata and controls

15 lines (9 loc) · 1.08 KB

Link

Link filter

You can enable the filter from Configuration -> Text formats and editors -> Configure -> Enable the Hel.fi: Link converter filter. This must be run after Convert URLs into links filter if enabled.

The filter parses all links from markup fields and runs them through #type => link render element, so they can be processed the same way as other links are processed. See src/Plugin/Filter/LinkConverter.php.

Link preprocessor

We override the default link #preprocess callback in helfi_api_base_element_info_alter() hook to run all our links through a template to figure out whether the link is external or not. See: