本文整理汇总了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;
}