Returns a list of constraints that support the given type.
string $type: The type to filter on.
array An array of constraint plugin definitions supporting the given type, keyed by constraint name (plugin ID).
public function getDefinitionsByType($type) {
$definitions = array();
foreach ($this
->getDefinitions() as $plugin_id => $definition) {
if ($definition['type'] === FALSE || in_array($type, $definition['type'])) {
$definitions[$plugin_id] = $definition;
}
}
return $definitions;
}