private function BlazyEntityReferenceFormatterTest::buildContents in Blazy 8
Build contents.
2 calls to BlazyEntityReferenceFormatterTest::buildContents()
- BlazyEntityReferenceFormatterTest::testBuildPreview in tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php - Tests Blazy preview.
- BlazyEntityReferenceFormatterTest::testFormatterDisplay in tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php - Tests the Blazy formatter display.
File
- tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php, line 73
Class
- BlazyEntityReferenceFormatterTest
- Tests the Blazy entity reference file formatter.
Namespace
Drupal\Tests\blazy\KernelCode
private function buildContents() {
$settings['image_settings'] = [
'iframe_lazy' => TRUE,
'lazy' => 'blazy',
'media_switch' => '',
'ratio' => 'fluid',
'view_mode' => 'default',
];
$settings['entity_field_name'] = $this->entityFieldName;
$settings['entity_plugin_id'] = $this->entityPluginId;
$settings['entity_settings'] = [
'grid' => 4,
'optionset' => '',
] + $this
->getFormatterSettings();
$this
->setUpContentWithEntityReference($settings);
}