You are here

protected function ExtraFieldTokenPlugin::getTokenTextType 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::getTokenTextType()

Get token text type.

Return value

string The token text type.

1 call to ExtraFieldTokenPlugin::getTokenTextType()
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 126

Class

ExtraFieldTokenPlugin
Define extra field token plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

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