You are here

protected function ExtraFieldDisplayManager::fieldName in Extra Field 8

Build the field name string.

Parameters

string $pluginId: The machine name of the Extra Field plugin.

Return value

string Field name.

2 calls to ExtraFieldDisplayManager::fieldName()
ExtraFieldDisplayManager::entityView in src/Plugin/ExtraFieldDisplayManager.php
Appends the renderable data from ExtraField plugins to hook_entity_view().
ExtraFieldDisplayManager::fieldInfo in src/Plugin/ExtraFieldDisplayManager.php
Exposes the ExtraFieldDisplay plugins to hook_entity_extra_field_info().

File

src/Plugin/ExtraFieldDisplayManager.php, line 221

Class

ExtraFieldDisplayManager
Manages Extra Field plugins.

Namespace

Drupal\extra_field\Plugin

Code

protected function fieldName($pluginId) {
  return 'extra_field_' . $pluginId;
}