function DefaultSelection::validateTargetBundlesUpdate
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection::validateTargetBundlesUpdate()
Validates a target_bundles_update element.
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php, line 328
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.