Fatal being thrown from using

$this->t()

Error: Call to undefined method Drupal\yoast_seo\SeoManager::t() in Drupal\yoast_seo\SeoManager->getScoreStatus() (line 140 of modules/contrib/yoast_seo/src/SeoManager.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

b_sharpe created an issue. See original summary.

b_sharpe’s picture

Status: Active » Needs review
FileSize
605 bytes
Kingdutch’s picture

Status: Needs review » Reviewed & tested by the community

That's an embarrassing oversight on my part ^^ Thanks for catching this! Will commit it no later than coming Monday.

  • Kingdutch committed f059c29 on 8.x-2.x authored by b_sharpe
    Issue #2975851 by b_sharpe, Kingdutch: Use StringTranslationTrait for...
Kingdutch’s picture

I've included your patch and followed the documentation guidelines to insert the string_translation service.

Thanks for your contribution! The fix has been committed and will be included in the next release : )

Kingdutch’s picture

Status: Reviewed & tested by the community » Fixed

Forgot the status.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.