You are here

ViewsConfigEntityTestViewsData.php in Drupal 9

File

core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php
View source
<?php

namespace Drupal\views_config_entity_test;

use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\views\EntityViewsDataInterface;

/**
 * Provides a view to override views data for config test entity types.
 */
class ViewsConfigEntityTestViewsData implements EntityViewsDataInterface {

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    return [];
  }

  /**
   * @inheritDoc
   */
  public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
    return 'views_config_entity_test';
  }

}

Classes

Namesort descending Description
ViewsConfigEntityTestViewsData Provides a view to override views data for config test entity types.