function WorkspaceTrackerTest::getEntityTypeIds
Same name and namespace in other branches
- 11.x core/modules/workspaces/tests/src/Kernel/WorkspaceTrackerTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceTrackerTest::getEntityTypeIds()
The data provider for ::testWorkspaceAssociation().
File
-
core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceTrackerTest.php, line 178
Class
- WorkspaceTrackerTest
- Tests workspace tracker.
Namespace
Drupal\Tests\workspaces\KernelCode
public static function getEntityTypeIds() : array {
return [
[
'entity_type_id' => 'entity_test_mulrevpub',
'entity_values' => [
1 => [
'name' => 'Test entity 1 - live - unpublished',
'status' => FALSE,
],
2 => [
'name' => 'Test entity 2 - live - published',
'status' => TRUE,
],
3 => [
'name' => 'Test entity 3 - stage - unpublished',
'status' => FALSE,
],
4 => [
'name' => 'Test entity 4 - stage - published',
'status' => TRUE,
],
5 => [
'name' => 'Test entity 5 - dev - unpublished',
'status' => FALSE,
],
6 => [
'name' => 'Test entity 6 - dev - published',
'status' => TRUE,
],
],
],
[
'entity_type_id' => 'entity_test_mulrevpub_string_id',
'entity_values' => [
1 => [
'id' => 'test_1',
'name' => 'Test entity 1 - live - unpublished',
'status' => FALSE,
],
2 => [
'id' => 'test_2',
'name' => 'Test entity 2 - live - published',
'status' => TRUE,
],
3 => [
'id' => 'test_3',
'name' => 'Test entity 3 - stage - unpublished',
'status' => FALSE,
],
4 => [
'id' => 'test_4',
'name' => 'Test entity 4 - stage - published',
'status' => TRUE,
],
5 => [
'id' => 'test_5',
'name' => 'Test entity 5 - dev - unpublished',
'status' => FALSE,
],
6 => [
'id' => 'test_6',
'name' => 'Test entity 6 - dev - published',
'status' => TRUE,
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.