You are here

protected function RangeTestTrait::getFieldNameRaw in Range 8

Returns raw field name (without "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 Raw field name.

1 call to RangeTestTrait::getFieldNameRaw()
RangeTestTrait::getFieldName in tests/src/Traits/RangeTestTrait.php
Returns field name (with "field_" prefix added by Drupal field UI).

File

tests/src/Traits/RangeTestTrait.php, line 65

Class

RangeTestTrait
Provides helper methods to test range fields.

Namespace

Drupal\Tests\range\Traits

Code

protected function getFieldNameRaw($field_type = 'range_integer') {
  return "{$field_type}";
}