-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EPIC-EWPP-2022-External-links #1119
Conversation
EWPP-2071: Add external icon to external custom footer links.
EWPP-2070: Allow <svg> and <use> in introduction fileds.
EWPP-2022: Update epic with 3.x.
Update EPIC-EWPP-2022
EWPP-2069: External link icon for patterns rendering links.
EWPP-2072: Update link fields to render external icon.
This reverts commit 3355d04.
EWPP-2071: Add external icon to external custom footer links.
EWPP-2274: Use external link service.
Update EPIC-EWPP-2022-External-links.
Update EPIC-EWPP-2022
EWPP-2307: Add external_link parameter to node teaser templates.
EWPP-2022: Update External links epic branch.
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function isExternalLink($url): bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should cover this with a dedicated test, where we throw at it all sorts of different values, of different types, and check the output.
} | ||
|
||
// If it's an external link, make sure its domain is not internal. | ||
$internal_domain_expression = $this->configFactory->get('oe_theme_helper.internal_domains')->get('internal_domain'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get the expression in the constructor, as we really don't need the config factory for anything else in this service.
Let's have a property called $internalDomainExpression, and we simply fill it in in the constructor.
EWPP-2022: Provide test coverage for the external links service.
EWPP-2022: Update epic branch.
EWPP-2022: Update EPIC-EWPP-2022.
Comments were addressed here #1125
No description provided.