function PluginHelper::isConfigurable
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/PluginHelper.php \Drupal\Component\Plugin\PluginHelper::isConfigurable()
- 8.9.x core/lib/Drupal/Component/Plugin/PluginHelper.php \Drupal\Component\Plugin\PluginHelper::isConfigurable()
- 10 core/lib/Drupal/Component/Plugin/PluginHelper.php \Drupal\Component\Plugin\PluginHelper::isConfigurable()
Determines if a plugin is configurable.
Parameters
mixed $plugin: The plugin to check.
Return value
bool A boolean indicating whether the plugin is configurable.
1 call to PluginHelper::isConfigurable()
- PluginHelperLegacyTest::testPluginHelperDeprecation in core/
tests/ Drupal/ Tests/ Component/ Plugin/ PluginHelperLegacyTest.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ PluginHelper.php, line 26
Class
- PluginHelper
- A helper class to determine if a plugin is configurable.
Namespace
Drupal\Component\PluginCode
public static function isConfigurable($plugin) {
return $plugin instanceof ConfigurableInterface;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.