public function BooleanItem::getSettableValues in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem::getSettableValues()
Returns an array of settable values.
If the optional $account parameter is passed, then the array is filtered to values settable by the account.
Parameters
\Drupal\Core\Session\AccountInterface $account: (optional) The user account for which to filter the settable values. If omitted, all settable values are returned.
Return value
array An array of settable values.
Overrides OptionsProviderInterface::getSettableValues
File
- core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ BooleanItem.php, line 109 - Contains \Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem.
Class
- BooleanItem
- Defines the 'boolean' entity field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public function getSettableValues(AccountInterface $account = NULL) {
return array(
0,
1,
);
}