Search for options

  1. Search 7.x for options
  2. Search 9.5.x for options
  3. Search 8.9.x for options
  4. Search 11.x for options
  5. Other projects
Title Object type File name Summary
OptionsFieldUITest::$typeName property core/modules/options/tests/src/Functional/OptionsFieldUITest.php The name of the created content type.
OptionsFieldUITest::assertAllowedValuesInput function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Tests an input array for the 'allowed values' form element.
OptionsFieldUITest::createOptionsField function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php Helper function to create list field of a given type.
OptionsFieldUITest::createOptionsField function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Helper function to create list field of a given type.
OptionsFieldUITest::exposeOptionMachineName function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php Exposes the machine name input for a row.
OptionsFieldUITest::setUp function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php
OptionsFieldUITest::setUp function core/modules/options/tests/src/Functional/OptionsFieldUITest.php
OptionsFieldUITest::testDefaultValueOptions function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php Tests that the allowed options are available to the default value widget.
OptionsFieldUITest::testMachineNameSpecialCharacters function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php Tests `list_string` machine name with special characters.
OptionsFieldUITest::testNodeDisplay function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Tests normal and key formatter display on node display.
OptionsFieldUITest::testOptionsAllowedValuesFloat function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Options (float) : test 'allowed values' input.
OptionsFieldUITest::testOptionsAllowedValuesInteger function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Options (integer) : test 'allowed values' input.
OptionsFieldUITest::testOptionsAllowedValuesText function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Options (text) : test 'allowed values' input.
OptionsFieldUITest::testRequiredPropertyForAllowedValuesList function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Confirms the allowed value list is a required field.
OptionsFieldUnitTestBase class core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php Base class for Options module integration tests.
OptionsFieldUnitTestBase.php file core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php
OptionsFieldUnitTestBase::$field property core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php The list field used in the test.
OptionsFieldUnitTestBase::$fieldName property core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php The field name used in the test.
OptionsFieldUnitTestBase::$fieldStorage property core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php The list field storage used in the test.
OptionsFieldUnitTestBase::$fieldStorageDefinition property core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php The field storage definition used to created the field storage.
OptionsFieldUnitTestBase::$modules property core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php Modules to install.
OptionsFieldUnitTestBase::setUp function core/modules/options/tests/src/Kernel/OptionsFieldUnitTestBase.php Set the default field storage backend for fields created during tests.
OptionsFloatFieldImportTest class core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php Tests option fields can be updated and created through config synchronization.
OptionsFloatFieldImportTest.php file core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php
OptionsFloatFieldImportTest::$defaultTheme property core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php The theme to install as the default for testing.
OptionsFloatFieldImportTest::$modules property core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php Modules to install.
OptionsFloatFieldImportTest::setUp function core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php
OptionsFloatFieldImportTest::testImport function core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php Tests that importing list_float fields works.
OptionsFormattersTest class core/modules/options/tests/src/Kernel/OptionsFormattersTest.php Tests the Options field type formatters.
OptionsFormattersTest.php file core/modules/options/tests/src/Kernel/OptionsFormattersTest.php
OptionsFormattersTest::setUp function core/modules/options/tests/src/Kernel/OptionsFormattersTest.php Set the default field storage backend for fields created during tests.
OptionsFormattersTest::testFormatter function core/modules/options/tests/src/Kernel/OptionsFormattersTest.php Tests the formatters.
OptionsKeyFormatter class core/modules/options/src/Plugin/Field/FieldFormatter/OptionsKeyFormatter.php Plugin implementation of the 'list_key' formatter.
OptionsKeyFormatter.php file core/modules/options/src/Plugin/Field/FieldFormatter/OptionsKeyFormatter.php
OptionsKeyFormatter::viewElements function core/modules/options/src/Plugin/Field/FieldFormatter/OptionsKeyFormatter.php Builds a renderable array for a field value.
OptionsListArgumentTest class core/modules/options/tests/src/Kernel/Views/OptionsListArgumentTest.php Tests options list argument for views.
OptionsListArgumentTest.php file core/modules/options/tests/src/Kernel/Views/OptionsListArgumentTest.php
OptionsListArgumentTest::$testViews property core/modules/options/tests/src/Kernel/Views/OptionsListArgumentTest.php Views used by this test.
OptionsListArgumentTest::testViewsTestOptionsListArgument function core/modules/options/tests/src/Kernel/Views/OptionsListArgumentTest.php Tests the options field argument.
OptionsListFilterTest class core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php Tests options list filter for views.
OptionsListFilterTest.php file core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
OptionsListFilterTest::$testViews property core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php Views used by this test.
OptionsListFilterTest::testViewsTestOptionsListFilter function core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php Tests options list field filter.
OptionsListFilterTest::testViewsTestOptionsListGroupedFilter function core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php Tests options list field filter when grouped.
OptionsProviderInterface interface core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php Interface for retrieving all possible and settable values.
OptionsProviderInterface.php file core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php
OptionsProviderInterface::getPossibleOptions function core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php Returns an array of possible values with labels for display.
OptionsProviderInterface::getPossibleValues function core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php Returns an array of possible values.
OptionsProviderInterface::getSettableOptions function core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php Returns an array of settable values with labels for display.
OptionsProviderInterface::getSettableValues function core/lib/Drupal/Core/TypedData/OptionsProviderInterface.php Returns an array of settable values.

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