Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DefaultSelection.php

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\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']);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal