public FieldStorageAddForm::fieldNameExists($value, $element, FormStateInterface $form_state)
Checks if a field machine name is taken.
Parameters
string $value: The machine name, not prefixed.
array $element: An array containing the structure of the 'field_name' element.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
bool Whether or not the field machine name is taken.
File
core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 542
Class