You are here

protected function ExtraFieldTokenPlugin::getTokenTextFormat in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldTokenPlugin::getTokenTextFormat()

Get token text format.

Return value

string The token text format.

1 call to ExtraFieldTokenPlugin::getTokenTextFormat()
ExtraFieldTokenPlugin::build in src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php
Build the render array of the extra field type contents.

File

src/Plugin/ExtraFieldType/ExtraFieldTokenPlugin.php, line 130

Class

ExtraFieldTokenPlugin
Define extra field token plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

protected function getTokenTextFormat() {
  $configuration = $this
    ->getConfiguration();
  return isset($configuration['token']['format']) ? $configuration['token']['format'] : NULL;
}