function BooleanItem::getSettableValues

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::getSettableValues()
  2. 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::getSettableValues()
  3. 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::getSettableValues()

Overrides OptionsProviderInterface::getSettableValues

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php, line 104

Class

BooleanItem
Defines the 'boolean' entity field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

public function getSettableValues(AccountInterface $account = NULL) {
    return [
        0,
        1,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.