freelink-error.html.twig in Freelinking 4.0.x
Same filename and directory in other branches
Default theme implementation for displaying freelinking errors.
Available variables:
- attributes: HTML attributes for the main element.
- message: The error message.
- plugin: The plugin that caused the error.
See also
template_preprocess_freelink_error()
19 theme calls to freelink-error.html.twig
- DrupalOrg::buildLink in src/
Plugin/ freelinking/ DrupalOrg.php - Build a link with the plugin.
- External::buildLink in src/
Plugin/ freelinking/ External.php - Build a link with the plugin.
- ExternalTest::testBuildLink in tests/
src/ Unit/ Plugin/ freelinking/ ExternalTest.php - Asserts that buildLink returns appropriate render array.
- File::buildLink in src/
Plugin/ freelinking/ File.php - Build a link with the plugin.
- FileTest::testBuildLink in tests/
src/ Unit/ Plugin/ freelinking/ FileTest.php - Assert that buildLink is functional.
File
templates/freelink-error.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for displaying freelinking errors.
- *
- * Available variables:
- * - attributes: HTML attributes for the main element.
- * - message: The error message.
- * - plugin: The plugin that caused the error.
- *
- * @see template_preprocess_freelink_error()
- *
- * @ingroup themeable
- */
- #}
- <code {{ attributes }}>
- {{ 'Freelinking' | trans }}: {{ message }} {{ indicator }}
- </code>