ViewsConfigEntityTestViewsData.php

Same filename in other branches
  1. 8.9.x core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php
  2. 10 core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php
  3. 11.x core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php

Namespace

Drupal\views_config_entity_test

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

Title Deprecated Summary
ViewsConfigEntityTestViewsData Provides a view to override views data for config test entity types.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.