public function RadioactivityFunctionTestTrait::setFieldEmitterDisplay in Radioactivity 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Traits/RadioactivityFunctionTestTrait.php \Drupal\Tests\radioactivity\Traits\RadioactivityFunctionTestTrait::setFieldEmitterDisplay()
Sets the emitter display mode of a field.
Parameters
string $fieldName: The field name.
bool $displayEnergy: Whether to display the energy level.
File
- tests/
src/ Traits/ RadioactivityFunctionTestTrait.php, line 247
Class
- RadioactivityFunctionTestTrait
- Radioactivity functional test trait.
Namespace
Drupal\Tests\radioactivity\TraitsCode
public function setFieldEmitterDisplay($fieldName, $displayEnergy = FALSE) {
$display = $displayEnergy ? 'raw' : 'none';
$this
->updateFieldEmitterSettings($fieldName, [
'display' => $display,
]);
}