public static function PluginHelper::isConfigurable in Drupal 8
Same name and namespace in other branches
- 9 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.
7 calls to PluginHelper::isConfigurable()
- Action::isConfigurable in core/
modules/ system/ src/ Entity/ Action.php - Returns whether or not this action is configurable.
- ContextAwarePluginBase::getContextMapping in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginBase.php - Gets a mapping of the expected assignment names to their context names.
- ContextAwarePluginBase::setContextMapping in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginBase.php - Sets a mapping of the expected assignment names to their context names.
- DefaultLazyPluginCollection::getConfiguration in core/
lib/ Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php - Gets the current configuration of all plugins in this collection.
- DefaultLazyPluginCollection::setInstanceConfiguration in core/
lib/ Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php - Updates the configuration for a plugin instance.
File
- core/
lib/ Drupal/ Component/ Plugin/ PluginHelper.php, line 27
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 || $plugin instanceof ConfigurablePluginInterface;
}