You are here

protected function ImageWatermarkEffect::getTokenTreeBuilder in Image effect kit 8

Returns the token.tree_builder service, if available.

Return value

\Drupal\token\TreeBuilderInterface|null The token.tree_builder service if available, NULL otherwise.

1 call to ImageWatermarkEffect::getTokenTreeBuilder()
ImageWatermarkEffect::buildConfigurationForm in src/Plugin/ImageEffect/ImageWatermarkEffect.php
Form constructor.

File

src/Plugin/ImageEffect/ImageWatermarkEffect.php, line 247
Contains \Drupal\iek\Plugin\ImageEffect\ImageWatermarkEffect.

Class

ImageWatermarkEffect
IEK - Watermark.

Namespace

Drupal\iek\Plugin\ImageEffect

Code

protected function getTokenTreeBuilder() {
  return \Drupal::hasService('token.tree_builder') ? \Drupal::service('token.tree_builder') : NULL;
}