Search for element

  1. Search 7.x for element
  2. Search 9.5.x for element
  3. Search 8.9.x for element
  4. Search 10.3.x for element
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Element class core/modules/editor/src/Element.php Defines a service for Text Editor's render elements.
Element class core/lib/Drupal/Core/Render/Element.php Provides helper methods for Drupal render elements.
Element class core/lib/Drupal/Core/Config/Schema/Element.php Defines a generic configuration element.

All search results

Title Object type File name Summary
ElementTest.php file core/modules/system/tests/src/Functional/Form/ElementTest.php
ElementTest.php file core/tests/Drupal/Tests/Core/Render/ElementTest.php
ElementTest::$defaultTheme property core/modules/system/tests/src/Functional/Form/ElementTest.php The theme to install as the default for testing.
ElementTest::$modules property core/modules/system/tests/src/Functional/Form/ElementTest.php Modules to install.
ElementTest::dataProviderIsRenderArray function core/tests/Drupal/Tests/Core/Render/ElementTest.php
ElementTest::providerTestIsEmpty function core/tests/Drupal/Tests/Core/Render/ElementTest.php
ElementTest::providerTestSetAttributes function core/tests/Drupal/Tests/Core/Render/ElementTest.php Data provider for testSetAttributes().
ElementTest::providerVisibleChildren function core/tests/Drupal/Tests/Core/Render/ElementTest.php Data provider for testVisibleChildren.
ElementTest::testButtonClasses function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests button classes.
ElementTest::testChild function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the child() method.
ElementTest::testChildren function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the children() method.
ElementTest::testDetailsSummaryAttributes function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests summary attributes of details.
ElementTest::testFormAutocomplete function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests a form with an autocomplete setting..
ElementTest::testFormElementErrors function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests form element error messages.
ElementTest::testFormElements function core/modules/system/tests/src/Functional/Form/ElementTest.php Test form elements.
ElementTest::testGroupElements function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests the #group property.
ElementTest::testIgnoredChildren function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the children() method with an ignored key/value pair.
ElementTest::testInvalidChildren function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the children() method with an invalid key.
ElementTest::testIsEmpty function core/tests/Drupal/Tests/Core/Render/ElementTest.php @covers ::isEmpty
ElementTest::testIsRenderArray function core/tests/Drupal/Tests/Core/Render/ElementTest.php @covers ::isRenderArray
@dataProvider dataProviderIsRenderArray
ElementTest::testOptions function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests expansion of #options for #type checkboxes and radios.
ElementTest::testPlaceHolderText function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests placeholder text for elements that support placeholders.
ElementTest::testProperties function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the properties() method.
ElementTest::testProperty function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the property() method.
ElementTest::testRadiosChecked function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests correct checked attribute for radios element.
ElementTest::testRequiredFieldsetsAndDetails function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests the #required property on details and fieldset elements.
ElementTest::testSetAttributes function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the setAttributes() method.
ElementTest::testVisibleChildren function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the visibleChildren() method.
ElementTest::testWrapperIds function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests wrapper ids for checkboxes and radios.
ElementValidationTest class core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php Various tests of AJAX behavior.
ElementValidationTest.php file core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php
ElementValidationTest::$defaultTheme property core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php The theme to install as the default for testing.
ElementValidationTest::$modules property core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php Modules to install.
ElementValidationTest::testAjaxElementValidation function core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php Tries to post an Ajax change to a form that has a validated element.
element_info_test.info.yml file core/modules/system/tests/modules/element_info_test/element_info_test.info.yml core/modules/system/tests/modules/element_info_test/element_info_test.info.yml
element_info_test.module file core/modules/system/tests/modules/element_info_test/element_info_test.module
element_info_test_element_info_alter function core/modules/system/tests/modules/element_info_test/element_info_test.module Implements hook_element_info_alter().
element_info_test_element_plugin_alter function core/modules/system/tests/modules/element_info_test/element_info_test.module Implements hook_element_plugin_alter().
EmailDefaultWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EmailDefaultWidget.php Returns the form for a single field widget.
EntityAutocompleteElementFormTest class core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php Tests the EntityAutocomplete Form API element.
EntityAutocompleteElementFormTest.php file core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
EntityAutocompleteElementFormTest::$referencedEntities property core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php An array of entities to be referenced in this test.
EntityAutocompleteElementFormTest::$testAutocreateUser property core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php User for autocreate testing.
EntityAutocompleteElementFormTest::$testUser property core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php User for testing.
EntityAutocompleteElementFormTest::buildForm function core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php Form constructor.
EntityAutocompleteElementFormTest::getAutocompleteInput function core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php Returns an entity label in format needed by the EntityAutocomplete element.
EntityAutocompleteElementFormTest::getFormId function core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php Returns a unique string identifying the form.
EntityAutocompleteElementFormTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
EntityAutocompleteElementFormTest::submitForm function core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php Form submission handler.
EntityAutocompleteElementFormTest::testEntityAutocompleteAccess function core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php Tests that access is properly checked by the EntityAutocomplete element.

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