function DefaultSelection::validateTargetBundlesUpdate
Validates a target_bundles_update element.
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php, line 346
Class
- DefaultSelection
- Default plugin implementation of the Entity Reference Selection plugin.
Namespace
Drupal\Core\Entity\Plugin\EntityReferenceSelectionCode
public static function validateTargetBundlesUpdate($element, FormStateInterface $form_state, $form) {
// Don't store the 'target_bundles_update' button value into the field
// config settings.
$form_state->unsetValue($element['#parents']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.