You are here

protected function ExtraFieldTokenPlugin::getTokenTextFormat in Entity Extra Field 2.0.x

Same name and namespace in other branches
  1. 8 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 136

Class

ExtraFieldTokenPlugin
Define extra field token plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

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