You are here

public function FieldHelper::getBundleFields in Feeds Paragraphs 8

Get all fields for a bundle.

Return value

\Prophecy\Prophecy\ObjectProphecy[]

1 call to FieldHelper::getBundleFields()
FieldHelper::getFieldDefinitions in tests/src/Unit/Helpers/FieldHelper.php

File

tests/src/Unit/Helpers/FieldHelper.php, line 191

Class

FieldHelper

Namespace

Drupal\Tests\feeds_para_mapper\Unit\Helpers

Code

public function getBundleFields($bundle) {
  $result = array();
  foreach ($this->fields as $field) {
    if ($field
      ->reveal()
      ->bundle() == $bundle) {
      array_push($result, $field);
    }
  }
  return $result;
}