protected function RangeTestTrait::getFieldName in Range 8
Returns field name (with "field_" prefix added by Drupal field UI).
Parameters
string $field_type: Range field type. Could be one of the following values: range_integer, range_float or range_decimal.
Return value
string Field name.
7 calls to RangeTestTrait::getFieldName()
- FormatterTestBase::setUp in tests/
src/ Kernel/ Formatter/ FormatterTestBase.php - RangeFormatterUiTestBase::setUp in tests/
src/ Functional/ Formatter/ RangeFormatterUiTestBase.php - RangeTestTrait::createField in tests/
src/ Traits/ RangeTestTrait.php - Creates a range field of a given type.
- RangeTestTrait::setFormDisplayComponent in tests/
src/ Traits/ RangeTestTrait.php - Sets the display settings for a default form display.
- RangeTestTrait::setViewDisplayComponent in tests/
src/ Traits/ RangeTestTrait.php - Sets the display settings for a default view display.
File
- tests/
src/ Traits/ RangeTestTrait.php, line 79
Class
- RangeTestTrait
- Provides helper methods to test range fields.
Namespace
Drupal\Tests\range\TraitsCode
protected function getFieldName($field_type = 'range_integer') {
return 'field_' . $this
->getFieldNameRaw($field_type);
}