Commit cc3b5c8c authored by webchick's avatar webchick
Browse files

Issue #2081195 by smiro: Remove Unused local variable from...

Issue #2081195 by smiro: Remove Unused local variable  from taxonomy/Plugin/field/formatter/EntityReferenceTaxonomyTermRssFormatter.php.
parent e235776e
...@@ -35,7 +35,7 @@ class EntityReferenceTaxonomyTermRssFormatter extends EntityReferenceFormatterBa ...@@ -35,7 +35,7 @@ class EntityReferenceTaxonomyTermRssFormatter extends EntityReferenceFormatterBa
public function viewElements(EntityInterface $entity, $langcode, FieldInterface $items) { public function viewElements(EntityInterface $entity, $langcode, FieldInterface $items) {
$elements = array(); $elements = array();
foreach ($items as $delta => $item) { foreach ($items as $item) {
$entity->rss_elements[] = array( $entity->rss_elements[] = array(
'key' => 'category', 'key' => 'category',
'value' => $item->entity->label(), 'value' => $item->entity->label(),
......
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