You are here

public function StateItemTest::providerSettableOptions in State Machine 8

Data provider for ::providerSettableOptions.

Return value

array A list of providerSettableOptions function arguments.

File

tests/src/Kernel/StateItemTest.php, line 140

Class

StateItemTest
@coversDefaultClass \Drupal\state_machine\Plugin\Field\FieldType\StateItem @group state_machine

Namespace

Drupal\Tests\state_machine\Kernel

Code

public function providerSettableOptions() {
  $data = [];
  $data['new'] = [
    'new',
    [
      'canceled' => 'Canceled',
      'validation' => 'Validation',
      'new' => 'New',
    ],
  ];
  $data['invalid'] = [
    'invalid',
    [],
  ];
  return $data;
}