Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297811

EntityViewsData adds operation links to an empty table in the views data array

$
0
0

EntityViewsData::getViewsData() does this:

      $data[$revision_table]['operations'] = [
        'field' => [
          'title' => $this->t('Operations links'),
          'help' => $this->t('Provides links to perform entity operations.'),
          'id' => 'entity_operations',
        ],
      ];

but for some entities -- eg user -- $revision_table will be an empty string.

Therefore, the views data array gets some pointless entity operations declared under a key that's just an empty string.


Viewing all articles
Browse latest Browse all 297811

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>