You are here

public function AssignmentConfigureForm::bundleExists in Features 8.3

Same name and namespace in other branches
  1. 8.4 modules/features_ui/src/Form/AssignmentConfigureForm.php \Drupal\features_ui\Form\AssignmentConfigureForm::bundleExists()

Callback for machine_name exists()

Parameters

$value:

$element:

$form_state:

Return value

bool

File

modules/features_ui/src/Form/AssignmentConfigureForm.php, line 447

Class

AssignmentConfigureForm
Configures the configuration assignment methods for this site.

Namespace

Drupal\features_ui\Form

Code

public function bundleExists($value, $element, $form_state) {
  $bundle = $this->assigner
    ->getBundle($value);
  return isset($bundle);
}