You are here

public function FieldsTest::rendererCallback in Layout Plugin Views 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/FieldsTest.php \Drupal\Tests\layout_plugin_views\Unit\FieldsTest::rendererCallback()

File

tests/src/Unit/FieldsTest.php, line 287

Class

FieldsTest
@coversDefaultClass \Drupal\layout_plugin_views\Plugin\views\row\Fields @group Panels

Namespace

Drupal\Tests\layout_plugin_views\Unit

Code

public function rendererCallback() {
  foreach ($this->sut->view->field as $field) {
    if (empty($field->options['exclude'])) {
      return 'render result';
    }
  }
  return '';
}