You are here

public function WorkflowStateActionBase::defaultConfiguration in Workflow 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableActionBase::defaultConfiguration

File

src/Plugin/Action/WorkflowStateActionBase.php, line 46

Class

WorkflowStateActionBase
Sets an entity to a new, given state.

Namespace

Drupal\workflow\Plugin\Action

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += $this->configuration;
  $configuration += [
    'field_name' => '',
    'to_sid' => '',
    'comment' => "New state is set by a triggered Action.",
    'force' => 0,
  ];
  return $configuration;
}