You are here

public function ShortcodeBase::defaultConfiguration in Shortcode 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ShortcodeBase.php \Drupal\shortcode\Plugin\ShortcodeBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

File

src/Plugin/ShortcodeBase.php, line 101

Class

ShortcodeBase
Provides a base class for Shortcode plugins.

Namespace

Drupal\shortcode\Plugin

Code

public function defaultConfiguration() {
  return [
    'provider' => $this->pluginDefinition['provider'],
    'status' => FALSE,
    'settings' => $this->pluginDefinition['settings'],
  ];
}