Search for number

  1. Search 7.x for number
  2. Search 8.9.x for number
  3. Search 10.3.x for number
  4. Search 11.x for number
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Number class core/lib/Drupal/Core/Render/Element/Number.php Provides a form element for numeric input, with special numeric validation.
Number class core/lib/Drupal/Component/Utility/Number.php Provides helper methods for manipulating numbers.

All search results

Title Object type File name Summary
ajax_forms_test_validation_number_form_callback function core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module Ajax form callback: Selects the 'drivernumber' element of the validation form.
BuildTestBase::getPortNumber function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Get the port number for requests.
Bytes::toNumber function core/lib/Drupal/Component/Utility/Bytes.php Parses a given byte size.
BytesTest::providerTestToNumber function core/tests/Drupal/Tests/Component/Utility/BytesTest.php Provides data for testToNumber().
BytesTest::testToNumber function core/tests/Drupal/Tests/Component/Utility/BytesTest.php Tests \Drupal\Component\Utility\Bytes::toNumber().
CommentAttributesTest::testNumberOfCommentsRdfaMarkup function core/modules/rdf/tests/src/Functional/CommentAttributesTest.php Tests the presence of the RDFa markup for the number of comments.
CommentStorage::getNewCommentPageNumber function core/modules/comment/src/CommentStorage.php Calculates the page number for the first new comment.
CommentStorageInterface::getNewCommentPageNumber function core/modules/comment/src/CommentStorageInterface.php Calculates the page number for the first new comment.
ConfigQueryTest::$number property core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php A number used by the sort tests.
DatabaseQueue::numberOfItems function core/lib/Drupal/Core/Queue/DatabaseQueue.php Retrieves the number of items in the queue.
DecimalFormatter::numberFormat function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/DecimalFormatter.php Formats a number.
DocParserTest::testKeyHasNumber function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
EditorSelectionTest::testNumber function core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php Tests a number field, with cardinality 1 and >1.
ExtensionVersionTest::providerInvalidVersionNumber function core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php Data provider for testInvalidVersionNumber().
ExtensionVersionTest::testInvalidVersionNumber function core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php @covers ::createFromVersionString
field.field.node.recipe.field_number_of_servings.yml file core/profiles/demo_umami/config/install/field.field.node.recipe.field_number_of_servings.yml core/profiles/demo_umami/config/install/field.field.node.recipe.field_number_of_servings.yml
field.storage.node.field_number_of_servings.yml file core/profiles/demo_umami/config/install/field.storage.node.field_number_of_servings.yml core/profiles/demo_umami/config/install/field.storage.node.field_number_of_servings.yml
FieldFormatterSettingsDefaults::numberSettings function core/modules/field/src/Plugin/migrate/process/d6/FieldFormatterSettingsDefaults.php
FormattableMarkupTest::$lastErrorNumber property core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php The error number of the last error in the error handler.
FormTest::testNumber function core/modules/system/tests/src/Functional/Form/FormTest.php Tests validation of #type 'number' and 'range' elements.
FormTestNumberForm class core/modules/system/tests/modules/form_test/src/Form/FormTestNumberForm.php Builds a form to test #type 'number' and 'range' validation.
FormTestNumberForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestNumberForm.php
FormTestNumberForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestNumberForm.php Form constructor.
FormTestNumberForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestNumberForm.php Returns a unique string identifying the form.
FormTestNumberForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestNumberForm.php Form submission handler.
IntegerFormatter::numberFormat function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/IntegerFormatter.php Formats a number.
Memory::numberOfItems function core/lib/Drupal/Core/Queue/Memory.php Retrieves the number of items in the queue.
ModuleVersionTest::providerInvalidVersionNumber function core/modules/update/tests/src/Unit/ModuleVersionTest.php Data provider for testInvalidVersionNumber().
ModuleVersionTest::testInvalidVersionNumber function core/modules/update/tests/src/Unit/ModuleVersionTest.php @covers ::createFromVersionString
Number class core/lib/Drupal/Core/Render/Element/Number.php Provides a form element for numeric input, with special numeric validation.
Number class core/lib/Drupal/Component/Utility/Number.php Provides helper methods for manipulating numbers.
Number.php file core/lib/Drupal/Core/Render/Element/Number.php
Number.php file core/lib/Drupal/Component/Utility/Number.php
Number::alphadecimalToInt function core/lib/Drupal/Component/Utility/Number.php Decodes a sorting code back to an integer.
Number::getInfo function core/lib/Drupal/Core/Render/Element/Number.php Returns the element properties for this element.
Number::intToAlphadecimal function core/lib/Drupal/Component/Utility/Number.php Generates a sorting code from an integer.
Number::preRenderNumber function core/lib/Drupal/Core/Render/Element/Number.php Prepares a #type 'number' render element for input.html.twig.
Number::validateNumber function core/lib/Drupal/Core/Render/Element/Number.php Form element validation handler for #type 'number'.
Number::validStep function core/lib/Drupal/Component/Utility/Number.php Verifies that a number is a multiple of a given step.
NumberField class core/modules/field/src/Plugin/migrate/field/d7/NumberField.php MigrateField plugin for Drupal 7 number fields.
NumberField.php file core/modules/field/src/Plugin/migrate/field/d7/NumberField.php
NumberFieldRdfaTest class core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests RDFa output by number field formatters.
NumberFieldRdfaTest.php file core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php
NumberFieldRdfaTest::createTestEntity function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Creates the RDF mapping for the field.
NumberFieldRdfaTest::testDecimalFormatter function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests the decimal formatter.
NumberFieldRdfaTest::testDecimalFormatterWithSettings function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests the decimal formatter with settings.
NumberFieldRdfaTest::testFloatFormatter function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests the float formatter.
NumberFieldRdfaTest::testFloatFormatterWithScale function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests the float formatter with a scale. Scale is not exercised.
NumberFieldRdfaTest::testFloatFormatterWithScaleExercised function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests the float formatter with a scale. Scale is exercised.
NumberFieldRdfaTest::testFloatFormatterWithSettings function core/modules/rdf/tests/src/Kernel/Field/NumberFieldRdfaTest.php Tests the float formatter with settings.

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