ProfileViewsData.php 643 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Drupal\profile;
  3. use Drupal\views\EntityViewsData;
  4. /**
  5. * Provides the views data for the node entity type.
  6. */
  7. class ProfileViewsData extends EntityViewsData {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function getViewsData() {
  12. $data = parent::getViewsData();
  13. $data['profile']['type']['title'] = t('Profile type');
  14. $data['profile']['profile_bulk_form'] = [
  15. 'title' => $this->t('Profile operations bulk form'),
  16. 'help' => $this->t('Add a form element that lets you run operations on multiple profiles.'),
  17. 'field' => [
  18. 'id' => 'profile_bulk_form',
  19. ],
  20. ];
  21. return $data;
  22. }
  23. }