Search for _array

  1. Search 7.x for _array
  2. Search 8.9.x for _array
  3. Search 10.3.x for _array
  4. Search 11.x for _array
  5. Search main for _array
  6. Other projects
Title Object type File name Summary
EntityDisplayBase::toArray function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Gets an array of all property values.
EntityInterface::toArray function core/lib/Drupal/Core/Entity/EntityInterface.php Gets an array of all property values.
EntityReferenceFormatterTest::buildRenderArray function core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php Sets field values and returns a render array.
EntityResourceTestBase::assertEntityArraySubset function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Recursively asserts that the expected items are set in the tested entity.
FetchTest::testQueryFetchArray function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record to an associative array explicitly.
FieldableEntityInterface::toArray function core/lib/Drupal/Core/Entity/FieldableEntityInterface.php Gets an array of all field values.
FieldConfigEntityUnitTest::testToArray function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @covers ::toArray[[api-linebreak]]
FileTranslation::filesToArray function core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php Reads the given Gettext PO files into a data structure.
FilterFormat::toArray function core/modules/filter/src/Entity/FilterFormat.php Gets an array of all property values.
FilterPluginBase::arrayFilterZero function core/modules/views/src/Plugin/views/filter/FilterPluginBase.php Filter by no empty values, though allow the use of (string) "0".
FormAjaxResponseBuilderTest::testBuildResponseRenderArray function core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php @covers ::buildResponse[[api-linebreak]]
FormHelper::processStatesArray function core/lib/Drupal/Core/Form/FormHelper.php Helps recursively rewrite #states selectors.
FormState::getCacheableArray function core/lib/Drupal/Core/Form/FormState.php Returns an array representation of the cacheable portion of the form state.
FormStateDecoratorBase::getCacheableArray function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Returns an array representation of the cacheable portion of the form state.
FormStateDecoratorBaseTest::testGetCacheableArray function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::getCacheableArray[[api-linebreak]]
FormStateInterface::getCacheableArray function core/lib/Drupal/Core/Form/FormStateInterface.php Returns an array representation of the cacheable portion of the form state.
FormStateTest::testPrepareCallbackArray function core/tests/Drupal/Tests/Core/Form/FormStateTest.php @covers ::prepareCallback[[api-linebreak]]
GetTest::testTransformSourceArray function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is an array.
GetTest::testTransformSourceArrayAt function core/modules/migrate/tests/src/Unit/process/GetTest.php Tests the Get plugin when source is an array pointing to destination.
GraphTest::displayArray function core/tests/Drupal/Tests/Component/Graph/GraphTest.php Helper function to output vertices as comma-separated list.
HelpPageTestController::testArray function core/modules/help/tests/modules/help_page_test/src/HelpPageTestController.php Provides a route which has multiple array returns from hook_help().
HTMLRestrictions::toCKEditor5ElementsArray function core/modules/ckeditor5/src/HTMLRestrictions.php Transforms into the CKEditor 5 package metadata "elements" representation.
Inspector::assertAllArrays function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are arrays.
Inspector::assertAllStrictArrays function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all members are strict arrays.
Inspector::assertStrictArray function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that the array is strict.
InspectorTest::testAssertAllArrays function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are arrays.
InspectorTest::testAssertAllStrictArrays function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strict arrays.
InspectorTest::testAssertStrictArray function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting array is 0-indexed - the strict definition of array.
InstallerWithTablePrefixArrayTest class core/tests/Drupal/FunctionalTests/Installer/InstallerWithTablePrefixArrayTest.php Tests the interactive installer with deprecated table prefix array.
InstallerWithTablePrefixArrayTest.php file core/tests/Drupal/FunctionalTests/Installer/InstallerWithTablePrefixArrayTest.php
InstallerWithTablePrefixArrayTest::$defaultTheme property core/tests/Drupal/FunctionalTests/Installer/InstallerWithTablePrefixArrayTest.php The theme to install as the default for testing.
InstallerWithTablePrefixArrayTest::testInstall function core/tests/Drupal/FunctionalTests/Installer/InstallerWithTablePrefixArrayTest.php Ensures that the status report raises the warning after installation.
InternalViolation::$arrayPropertyPath property core/lib/Drupal/Core/Field/InternalViolation.php The array property path.
InternalViolationTest::testSetGetArrayPropertyPath function core/tests/Drupal/Tests/Core/Field/InternalViolationTest.php @covers ::__get[[api-linebreak]]
@covers ::__set[[api-linebreak]]
LanguageUnitTest::providerTestSortArrayOfLanguages function core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php Provides data for testSortArrayOfLanguages.
LanguageUnitTest::testSortArrayOfLanguages function core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php Tests sorting an array of language objects.
LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY constant core/modules/layout_builder/src/LayoutBuilderEvents.php Name of the event fired when a component's render array is built.
MainContentViewSubscriber::onViewRenderArray function core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php Sets a response given a (main content) render array.
Map::toArray function core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php Returns an array of all property values.
MapItem::toArray function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php Returns an array of all property values.
ModerationStateFieldItemListTest::testArrayIndex function core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php Tests the field item list when accessing an index.
ModerationStateFieldItemListTest::testArrayIteration function core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php Tests the field item list when iterating.
NestedArray class core/lib/Drupal/Component/Utility/NestedArray.php Provides helpers to perform operations on nested arrays and array keys of variable depth.
NestedArray.php file core/lib/Drupal/Component/Utility/NestedArray.php
NestedArray::filter function core/lib/Drupal/Component/Utility/NestedArray.php Filters a nested array recursively.
NestedArray::getValue function core/lib/Drupal/Component/Utility/NestedArray.php Retrieves a value from a nested array with variable depth.
NestedArray::keyExists function core/lib/Drupal/Component/Utility/NestedArray.php Determines whether a nested array contains the requested keys.
NestedArray::mergeDeep function core/lib/Drupal/Component/Utility/NestedArray.php Merges multiple arrays, recursively, and returns the merged array.
NestedArray::mergeDeepArray function core/lib/Drupal/Component/Utility/NestedArray.php Merges multiple arrays, recursively, and returns the merged array.
NestedArray::setValue function core/lib/Drupal/Component/Utility/NestedArray.php Sets a value in a nested array with variable depth.

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