Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The $facet_object['label']
variable is passed to t()
in the FacetapiDependencyFacet::getEnabledFacets() method, however the label should already have been passed to t()
or translated by the i18n module in it's hook_facetapi_facet_info() implementation. See Facet API's core facet definitions for an example. In addition, according to the API documentation you should avoid passing dynamic variables to t()
unless certain conditions are met, in this case none of them are.
Comments
Comment #0.0
cpliakas CreditAttribution: cpliakas commentedUpdated issue summary.
Comment #1
danielnolde CreditAttribution: danielnolde commentedFixed, thanks for the hint!
Comment #2.0
(not verified) CreditAttribution: commentedUpdated issue summary.