You are here

public function DisplayFieldCopy::getRenderKey in Display Field Copy 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/DsField/DisplayFieldCopy.php \Drupal\display_field_copy\Plugin\DsField\DisplayFieldCopy::getRenderKey()
1 call to DisplayFieldCopy::getRenderKey()
DisplayFieldCopy::build in src/Plugin/DsField/DisplayFieldCopy.php

File

src/Plugin/DsField/DisplayFieldCopy.php, line 146

Class

DisplayFieldCopy
Defines a generic dynamic field that holds a copy of an exisitng core field.

Namespace

Drupal\display_field_copy\Plugin\DsField

Code

public function getRenderKey() {
  $field_id = $this
    ->getFieldConfiguration()['properties']['field_id'];
  $pieces = explode('.', $field_id);
  return end($pieces);
}