You are here

public function NodeField::defaultConfiguration in Entity Field Condition 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConditionPluginBase::defaultConfiguration

File

src/Plugin/Condition/NodeField.php, line 260

Class

NodeField
Provides a 'Node Field' condition.

Namespace

Drupal\entity_field_condition\Plugin\Condition

Code

public function defaultConfiguration() {
  $configuration = [
    'entity_type_id' => 'node',
    'entity_bundle' => '',
    'field' => '',
    'value_source' => 'null',
    'value' => '',
  ];
  return $configuration + parent::defaultConfiguration();
}