Commit 5fa08754 authored by Vit Hovezak's avatar Vit Hovezak

Remove redundant field getting.

parent ddb57fd0
......@@ -46,7 +46,7 @@ function entity_class_formatter_entity_view_alter(array &$build, EntityInterface
else {
// Process all values of current field.
foreach ($entity->get($name)->getValue() as $value) {
foreach ($field->getValue() as $value) {
// Fill value as a class into the entity if is not empty.
if (!empty($value['value'])) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment