本文整理匯總了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'));
}
示例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'));
}
示例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');
}
示例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;
}