You are here

protected function EntityShareClientFunctionalTestBase::getCompleteParagraphInfos in Entity Share 8.3

Same name and namespace in other branches
  1. 8.2 modules/entity_share_client/tests/src/Functional/EntityShareClientFunctionalTestBase.php \Drupal\Tests\entity_share_client\Functional\EntityShareClientFunctionalTestBase::getCompleteParagraphInfos()

Helper function.

Parameters

array $paragraph_infos: The paragraph infos to use.

Return value

array Return common part to create paragraph.

1 call to EntityShareClientFunctionalTestBase::getCompleteParagraphInfos()
ParagraphTest::getEntitiesDataArray in modules/entity_share_client/tests/src/Functional/ParagraphTest.php
Helper function to get a mapping of the entities data.

File

modules/entity_share_client/tests/src/Functional/EntityShareClientFunctionalTestBase.php, line 866

Class

EntityShareClientFunctionalTestBase
Base class for Entity Share Client functional tests.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function getCompleteParagraphInfos(array $paragraph_infos) {
  return array_merge([
    'type' => [
      'value' => 'es_test',
      'checker_callback' => 'getTargetId',
    ],
  ], $paragraph_infos);
}