\Drupal::config() has already been saved in the $config variable, and $config->get() is properly used everywhere following that except in one place where another \Drupal::config()->get() is performed. $config->get() should be used everywhere.

CommentFileSizeAuthor
locale-config.patch896 bytesTR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LinL’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, gets rid of unnecessary call to \Drupal::config. RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Nice catch! Performance++

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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