You are here

public function DevelGenerateBase::getDefaultSettings in Devel 4.x

Same name and namespace in other branches
  1. 8.3 devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getDefaultSettings()
  2. 8 devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getDefaultSettings()
  3. 8.2 devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getDefaultSettings()

Returns the default settings for the plugin.

Return value

array The array of default setting values, keyed by setting names.

Overrides DevelGenerateBaseInterface::getDefaultSettings

2 calls to DevelGenerateBase::getDefaultSettings()
DevelGenerateBase::getSetting in devel_generate/src/DevelGenerateBase.php
Returns the array of settings, including defaults for missing settings.
TermDevelGenerate::validateDrushParams in devel_generate/src/Plugin/DevelGenerate/TermDevelGenerate.php
Responsible for validating Drush params.

File

devel_generate/src/DevelGenerateBase.php, line 53

Class

DevelGenerateBase
Provides a base DevelGenerate plugin implementation.

Namespace

Drupal\devel_generate

Code

public function getDefaultSettings() {
  $definition = $this
    ->getPluginDefinition();
  return $definition['settings'];
}