Currently class TintEmbedBlockDerivative is accessing configurations using \Drupal::config('tint.settings') but as per drupal standards we should inject service inside the class.

Comments

Rangaswini created an issue. See original summary.

Rangaswini’s picture

StatusFileSize
new1.69 KB

Attached patch to add dependency injection inside the class.

Rangaswini’s picture

Status: Active » Needs review
ambuj_gupta’s picture

Assigned: Rangaswini » ambuj_gupta
ambuj_gupta’s picture

Tested and verified the module by adding the patch created by @rangaswini. It looks good to me.

ambuj_gupta’s picture

Assigned: ambuj_gupta » Unassigned
Status: Needs review » Reviewed & tested by the community
pratik_kamble’s picture

Status: Reviewed & tested by the community » Needs work

Currently class TintEmbedBlockDerivative is accessing configurations using \Drupal::config('tint.settings') but as per drupal standards we should inject service inside the class.

Rangaswini’s picture

Assigned: Unassigned » Rangaswini
Rangaswini’s picture

Status: Needs work » Needs review
StatusFileSize
new2.44 KB
Rangaswini’s picture

Assigned: Rangaswini » Unassigned
pratik_kamble’s picture

@Rangaswini patch LGTM.

pratik_kamble’s picture

Status: Needs review » Reviewed & tested by the community
sonvir249’s picture

Version: 8.x-1.0-alpha1 » 8.x-1.0-alpha2

Committing changes into 8.x-1.0-alpha2.

sonvir249’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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