You are here

public function IframeItem::getTokenSupport in Iframe 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldType/IframeItem.php \Drupal\iframe\Plugin\Field\FieldType\IframeItem::getTokenSupport()

Get token support setting.

File

src/Plugin/Field/FieldType/IframeItem.php, line 294

Class

IframeItem
Plugin implementation of the 'Iframe' field type.

Namespace

Drupal\iframe\Plugin\Field\FieldType

Code

public function getTokenSupport() {
  $value = $this
    ->getSetting('tokensupport');
  $value = empty($value) ? 0 : (int) $value;
  return $value;
}