public function ConfigActionsId::detect in Config Actions 8
Determine if $source is valid for the specific plugin.
Parameters
mixed $source:
Return value
bool TRUE if $source is a valid reference for this plugin.
Overrides ConfigActionsSourceBase::detect
File
- src/
Plugin/ ConfigActionsSource/ ConfigActionsId.php, line 124
Class
- ConfigActionsId
- Plugin for config id from the active store.
Namespace
Drupal\config_actions\Plugin\ConfigActionsSourceCode
public function detect($source) {
// Check for a valid configuration id.
return is_string($source) && strpos($source, '.') > 0;
}