public function MachineName::exists in Machine name 8
This method needs to exist, but the constrain does the actual validation.
Parameters
string $value: The input value.
Return value
bool As the MachineNameUnique constraint will do the actual validation, always return FALSE to skip validation here.
File
- src/
Plugin/ Field/ FieldWidget/ MachineName.php, line 94
Class
- MachineName
- Plugin annotation @FieldWidget( id = "machine_name", label = @Translation("Machine name"), field_types = { "machine_name" }, )
Namespace
Drupal\machine_name\Plugin\Field\FieldWidgetCode
public function exists($value) {
return FALSE;
}