Skip to content
Snippets Groups Projects
Commit 91769f19 authored by Kunal Sachdev's avatar Kunal Sachdev
Browse files

phpcs fix

parent a46d9e04
1 merge request!5708Resolve #2473989 "Lack of dynamic"
......@@ -120,7 +120,7 @@ protected function viewValue(FieldItemInterface $item) {
// \Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED
// and \Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE are
// not returned from the language manager above.
$value = '';
$value = '';
if (isset($item->language)) {
$name = isset($languages[$item->language->getId()]) ? $languages[$item->language->getId()]->getName() : $item->language->getId();
$value = ['#plain_text' => $name];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment