function ListStringItem::exists

Same name and namespace in other branches
  1. 10 core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php \Drupal\options\Plugin\Field\FieldType\ListStringItem::exists()

Checks for existing keys for allowed values.

File

core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php, line 138

Class

ListStringItem
Plugin implementation of the 'list_string' field type.

Namespace

Drupal\options\Plugin\Field\FieldType

Code

public static function exists() : bool {
  // Without access to the current form state, we cannot know if a given key
  // is in use. Return FALSE in all cases.
  return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.