function DefaultSelection::validateTargetBundlesUpdate

Validates a target_bundles_update element.

File

core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php, line 339

Class

DefaultSelection
Default plugin implementation of the Entity Reference Selection plugin.

Namespace

Drupal\Core\Entity\Plugin\EntityReferenceSelection

Code

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.