You are here

public function ExtraFieldDisplayFormattedBase::getFieldName in Extra Field 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/ExtraFieldDisplayFormattedBase.php \Drupal\extra_field\Plugin\ExtraFieldDisplayFormattedBase::getFieldName()

The machine name of the field.

Used in the 'field--name-...' wrapper class.

Return value

string The field name.

Overrides ExtraFieldDisplayFormattedInterface::getFieldName

1 call to ExtraFieldDisplayFormattedBase::getFieldName()
ExtraFieldDisplayFormattedBase::view in src/Plugin/ExtraFieldDisplayFormattedBase.php
Builds a renderable array for the field.
1 method overrides ExtraFieldDisplayFormattedBase::getFieldName()
SingleTextFieldTest::getFieldName in tests/extra_field_test/src/Plugin/ExtraField/Display/SingleTextFieldTest.php
The machine name of the field.

File

src/Plugin/ExtraFieldDisplayFormattedBase.php, line 125

Class

ExtraFieldDisplayFormattedBase
Base class for Extra field Display plugins with field wrapper output.

Namespace

Drupal\extra_field\Plugin

Code

public function getFieldName() {
  return 'extra_field_' . $this->pluginId;
}