protected function BooleanFormatterTest::renderEntityFields in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/src/Tests/Boolean/BooleanFormatterTest.php \Drupal\field\Tests\Boolean\BooleanFormatterTest::renderEntityFields()
Renders fields of a given entity with a given display.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity object with attached fields to render.
\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The display to render the fields in.
Return value
string The rendered entity fields.
1 call to BooleanFormatterTest::renderEntityFields()
- BooleanFormatterTest::testBooleanFormatter in core/
modules/ field/ src/ Tests/ Boolean/ BooleanFormatterTest.php - Tests boolean formatter output.
File
- core/
modules/ field/ src/ Tests/ Boolean/ BooleanFormatterTest.php, line 98 - Contains \Drupal\field\Tests\Boolean\BooleanFormatterTest.
Class
- BooleanFormatterTest
- Tests the boolean formatter.
Namespace
Drupal\field\Tests\BooleanCode
protected function renderEntityFields(FieldableEntityInterface $entity, EntityViewDisplayInterface $display) {
$content = $display
->build($entity);
$content = $this
->render($content);
return $content;
}