function PluginHelper::isConfigurable

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/PluginHelper.php \Drupal\Component\Plugin\PluginHelper::isConfigurable()
  2. 10 core/lib/Drupal/Component/Plugin/PluginHelper.php \Drupal\Component\Plugin\PluginHelper::isConfigurable()
  3. 11.x 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.

5 calls to PluginHelper::isConfigurable()
Action::isConfigurable in core/modules/system/src/Entity/Action.php
Returns whether or not this action is configurable.
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.
DefaultSingleLazyPluginCollection::getConfiguration in core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php
Gets the current configuration of all plugins in this collection.
DefaultSingleLazyPluginCollection::setConfiguration in core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php
Sets the configuration for all plugins in this collection.

File

core/lib/Drupal/Component/Plugin/PluginHelper.php, line 21

Class

PluginHelper
A helper class to determine if a plugin is configurable.

Namespace

Drupal\Component\Plugin

Code

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.