function PluginHelper::isConfigurable

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

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\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.