You are here

public function MobileDeviceDetectionConditionPlugin::defaultConfiguration in Mobile Device Detection 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Condition/MobileDeviceDetectionConditionPlugin.php \Drupal\mobile_device_detection\Plugin\Condition\MobileDeviceDetectionConditionPlugin::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConditionPluginBase::defaultConfiguration

File

src/Plugin/Condition/MobileDeviceDetectionConditionPlugin.php, line 41

Class

MobileDeviceDetectionConditionPlugin
This main class which add ability to determine device.

Namespace

Drupal\mobile_device_detection\Plugin\Condition

Code

public function defaultConfiguration() {
  return [
    'devices' => [],
  ] + parent::defaultConfiguration();
}