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

Namespace

Drupal\field_states_ui\Plugin\FieldState

File

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

Title Deprecated Summary
Optional Controls field widget optional state in relation to other fields dynamically.