當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。