当前位置: 首页>>代码示例>>PHP>>正文


PHP ViewExecutable::getPluginTypes方法代码示例

本文整理汇总了PHP中Drupal\views\ViewExecutable::getPluginTypes方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewExecutable::getPluginTypes方法的具体用法?PHP ViewExecutable::getPluginTypes怎么用?PHP ViewExecutable::getPluginTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Drupal\views\ViewExecutable的用法示例。


在下文中一共展示了ViewExecutable::getPluginTypes方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 protected function setUp()
 {
     parent::setUp();
     // Ensure that the plugin definitions are cleared.
     foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
         $this->container->get("plugin.manager.views.{$plugin_type}")->clearCachedDefinitions();
     }
     ViewTestData::createTestViews(get_class($this), array('ds_test'));
 }
开发者ID:darrylri,项目名称:protovbmwmo,代码行数:9,代码来源:ViewsTest.php

示例2: setUp

 protected function setUp()
 {
     parent::setUp();
     // Views' Page displays put menu links in the 'navigation' menu by default.
     entity_create('menu', array('id' => 'navigation', 'label' => 'Navigation'))->save();
     // Ensure that the plugin definitions are cleared.
     foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
         $this->container->get("plugin.manager.views.{$plugin_type}")->clearCachedDefinitions();
     }
     ViewTestData::createTestViews(get_class($this), array('views_test_config'));
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:11,代码来源:ViewTestBase.php

示例3: testPluginList

 /**
  * Tests the plugins list is correct.
  */
 public function testPluginList()
 {
     $plugin_list = array('access', 'area', 'argument', 'argument_default', 'argument_validator', 'cache', 'display_extender', 'display', 'exposed_form', 'field', 'filter', 'join', 'pager', 'query', 'relationship', 'row', 'sort', 'style', 'wizard');
     $diff = array_diff($plugin_list, ViewExecutable::getPluginTypes());
     $this->assertTrue(empty($diff), 'The plugin list is correct');
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:9,代码来源:PluginTypeListTest.php

示例4: getPluginDefinitions

 /**
  * Gets all the views plugin definitions.
  *
  * @return array
  *   An array of plugin definitions for all types.
  */
 public static function getPluginDefinitions()
 {
     $plugins = array();
     foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
         $plugins[$plugin_type] = static::pluginManager($plugin_type)->getDefinitions();
     }
     return $plugins;
 }
开发者ID:davidsoloman,项目名称:drupalconsole.com,代码行数:14,代码来源:Views.php


注:本文中的Drupal\views\ViewExecutable::getPluginTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。