You are here

public function ConditionalFieldsHandlersManager::getDefinitions in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x src/ConditionalFieldsHandlersManager.php \Drupal\conditional_fields\ConditionalFieldsHandlersManager::getDefinitions()

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

Overrides DefaultPluginManager::getDefinitions

See also

\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()

File

src/ConditionalFieldsHandlersManager.php, line 85

Class

ConditionalFieldsHandlersManager
Manages discovery and instantiation of handler plugins.

Namespace

Drupal\conditional_fields

Code

public function getDefinitions() {

  // Remove the default plugin from the array.
  $definitions = parent::getDefinitions();
  unset($definitions['states_handler_default_state']);
  return $definitions;
}