You are here

public function TamperPluginDefinition::isCompatible in Tamper 7

Determines whether this plugin is compatible with a given module.

Parameters

string $module: The module to check.

Return value

bool Returns true if compatible, and false if not.

File

src/Tamper.php, line 110
Contains TamperPluginBase.

Class

TamperPluginDefinition
Wraps a plugin definition array.

Code

public function isCompatible($module) {
  return empty($this->definition['compatible']) || in_array($module, $this->definition['compatible'], TRUE);
}