8.5.x NodeType.php NodeType::defaultConfiguration()
8.0.x NodeType.php NodeType::defaultConfiguration()
8.1.x NodeType.php NodeType::defaultConfiguration()
8.2.x NodeType.php NodeType::defaultConfiguration()
8.3.x NodeType.php NodeType::defaultConfiguration()
8.4.x NodeType.php NodeType::defaultConfiguration()
8.6.x NodeType.php NodeType::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConditionPluginBase::defaultConfiguration

File

core/modules/node/src/Plugin/Condition/NodeType.php, line 117

Class

NodeType
Provides a 'Node Type' condition.

Namespace

Drupal\node\Plugin\Condition

Code

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