Commit b13a82c2 authored by webchick's avatar webchick
Browse files

Issue #1778122 follow-up by beejeebus: Added missing = sign.

parent dd841baf
...@@ -500,7 +500,7 @@ function _entity_test_record_hooks($hook, $data) { ...@@ -500,7 +500,7 @@ function _entity_test_record_hooks($hook, $data) {
*/ */
function entity_test_entity_prepare_view($entity_type, array $entities, array $displays) { function entity_test_entity_prepare_view($entity_type, array $entities, array $displays) {
// Add a dummy field item attribute on field_test_text if it exists. // Add a dummy field item attribute on field_test_text if it exists.
if ($entity_type = 'entity_test_render') { if ($entity_type == 'entity_test_render') {
foreach ($entities as $entity) { foreach ($entities as $entity) {
if ($entity->getPropertyDefinition('field_test_text')) { if ($entity->getPropertyDefinition('field_test_text')) {
foreach ($entity->get('field_test_text') as $item) { foreach ($entity->get('field_test_text') as $item) {
......
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