You are here

public function WrapperManager::getWrapperOptions in Field Token Value 8

Same name and namespace in other branches
  1. 2.x src/WrapperManager.php \Drupal\field_token_value\WrapperManager::getWrapperOptions()

Get the tags than can wrap fields.

Return value

array An array of HTML tags which can wrap the field value.

Overrides WrapperManagerInterface::getWrapperOptions

File

src/WrapperManager.php, line 100
Contains \Drupal\field_token_value\WrapperManager.

Class

WrapperManager
Gathers and provides the tags that can be used to wrap field content within Field Token Value fields.

Namespace

Drupal\field_token_value

Code

public function getWrapperOptions() {
  $options = [];
  foreach ($this
    ->getDefinitions() as $id => $definition) {
    $options[$id] = $definition['title'];
  }
  return $options;
}