class PluginHelper in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/PluginHelper.php \Drupal\Component\Plugin\PluginHelper
A helper class to determine if a plugin is configurable.
@todo Deprecate this class. https://www.drupal.org/node/3105685
Hierarchy
- class \Drupal\Component\Plugin\PluginHelper
Expanded class hierarchy of PluginHelper
3 files declare their use of PluginHelper
- Action.php in core/
modules/ system/ src/ Entity/ Action.php - DefaultLazyPluginCollection.php in core/
lib/ Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php - DefaultSingleLazyPluginCollection.php in core/
lib/ Drupal/ Core/ Plugin/ DefaultSingleLazyPluginCollection.php
File
- core/
lib/ Drupal/ Component/ Plugin/ PluginHelper.php, line 10
Namespace
Drupal\Component\PluginView source
class PluginHelper {
/**
* Determines if a plugin is configurable.
*
* @param mixed $plugin
* The plugin to check.
*
* @return bool
* A boolean indicating whether the plugin is configurable.
*/
public static function isConfigurable($plugin) {
return $plugin instanceof ConfigurableInterface;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginHelper:: |
public static | function | Determines if a plugin is configurable. |