global $language ;
$langcode = $language->language ;

Comments

sergeypavlenko’s picture

Status: Active » Needs review
StatusFileSize
new588 bytes

Add patch.

Status: Needs review » Needs work

The last submitted patch, examples.entity-example.2105301-1.patch, failed testing.

sergeypavlenko’s picture

Status: Needs work » Needs review
StatusFileSize
new648 bytes

Sorry, attached correct patch.

marvil07’s picture

Status: Needs review » Fixed

Thanks for the patch!

Added to 7.x-1.x.

Status: Fixed » Closed (fixed)

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