1 views_access.test ViewsAccessTest::viewsPlugins()

Overrides ViewsSqlTest::viewsPlugins

File

core/modules/views/tests/views_access.test, line 28
Definition of ViewsAccessTest.

Class

ViewsAccessTest
Basic test for pluggable access.

Code

function viewsPlugins() {
  $plugins = array(
    'access' => array(
      'test_static' => array(
        'title' => t('Static test access plugin'),
        'help' => t('Provides a static test access plugin.'),
        'handler' => 'views_test_plugin_access_test_static',
        'path' => backdrop_get_path('module', 'views_test') . '/test_plugins',
      ),
      'test_dynamic' => array(
        'title' => t('Dynamic test access plugin'),
        'help' => t('Provides a dynamic test access plugin.'),
        'handler' => 'views_test_plugin_access_test_dynamic',
        'path' => backdrop_get_path('module', 'views_test') . '/test_plugins',
      ),
    ),
  );

  return $plugins;
}