Same filename in other branches
  1. 8.x-1.x src/Plugin/FieldState/Optional.php

Namespace

Drupal\field_states_ui\Plugin\FieldState

Fichier

src/Plugin/FieldState/Optional.php

View source
<?php

namespace Drupal\field_states_ui\Plugin\FieldState;

use Drupal\field_states_ui\FieldStateBase;

/**
 * Controls field widget optional state in relation to other fields dynamically.
 *
 * @FieldState(
 *   id = "optional",
 *   label = @Translation("Optional"),
 *   description = @Translation("Dynamically make field optional dependent on other field states/values.")
 * )
 */
class Optional extends FieldStateBase {

}

Classes

Titre Deprecated Résumé
Optional Controls field widget optional state in relation to other fields dynamically.