You are here

public function ConfigActionsArray::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/ConfigActionsArray.php, line 22

Class

ConfigActionsArray
Plugin for storing source data from an array. This runs last to allow any other plugins to detect themselves first.

Namespace

Drupal\config_actions\Plugin\ConfigActionsSource

Code

public function detect($source) {
  return is_array($source);
}