public function PluginBase::supportsOp in Backup and Migrate 8.4
Does this plugin implement the given operation.
Parameters
$op string The name of the operation:
Return value
bool
Overrides PluginInterface::supportsOp
File
- lib/
backup_migrate_core/ src/ Plugin/ PluginBase.php, line 39
Class
- PluginBase
- Class PluginOperationTrait.
Namespace
BackupMigrate\Core\PluginCode
public function supportsOp($op) {
// If the function has the method then it supports the op.
if (method_exists($this, $op)) {
return TRUE;
}
// If the supported ops array contains the op then it is supported.
$ops = $this
->supportedOps();
return isset($ops[$op]);
}