68 calls to Json::decode()
- AnnounceFetcher::fetch in core/
modules/ announcements_feed/ src/ AnnounceFetcher.php - Fetches the feed either from a local cache or fresh remotely.
- AssertContentTrait::setRawContent in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Sets the raw content (e.g. HTML).
- AttachedAssetsTest::testSettings in core/
tests/ Drupal/ KernelTests/ Core/ Asset/ AttachedAssetsTest.php - Tests JavaScript settings.
- BasicTest::testViewsWizardAndListing in core/
modules/ views/ tests/ src/ Functional/ Wizard/ BasicTest.php - BrowserTestBase::getDrupalSettings in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Gets the JavaScript drupalSettings variable for the currently-loaded page.
- BrowserTestBaseTest::testForm in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - Tests basic form functionality.
- CKEditor5::validateConfigurationForm in core/
modules/ ckeditor5/ src/ Plugin/ Editor/ CKEditor5.php - Form validation handler.
- CommentNewIndicatorTest::testCommentNewCommentsIndicator in core/
modules/ comment/ tests/ src/ Functional/ CommentNewIndicatorTest.php - Tests new comment marker.
- CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessBasedOnPermissions in core/
modules/ jsonapi/ tests/ src/ Traits/ CommonCollectionFilterAccessTestPatternsTrait.php - Implements ::testCollectionFilterAccess() for pure permission-based access.
- CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessForPublishableEntities in core/
modules/ jsonapi/ tests/ src/ Traits/ CommonCollectionFilterAccessTestPatternsTrait.php - Implements ::testCollectionFilterAccess() for permission + status access.
- ContextualDynamicContextTest::testDifferentPermissions in core/
modules/ contextual/ tests/ src/ Functional/ ContextualDynamicContextTest.php - Tests contextual links with different permissions.
- contextual_contextual_links_view_alter in core/
modules/ contextual/ contextual.module - Implements hook_contextual_links_view_alter().
- DbLogResourceTest::testWatchdog in core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php - Writes a log messages and retrieves it via the REST API.
- DisplayBlockTest::testBlockContextualLinks in core/
modules/ block/ tests/ src/ Functional/ Views/ DisplayBlockTest.php - Tests the contextual links on a Views block.
- EditorSecurityTest::testSwitchingSecurity in core/
modules/ editor/ tests/ src/ Functional/ EditorSecurityTest.php - Tests administrator security: is the user safe when switching text formats?
- ElementsVerticalTabsTest::testDefaultTabCleaned in core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsVerticalTabsTest.php - Ensures that vertical tab form values are cleaned.
- EmailTest::testFormEmail in core/
modules/ system/ tests/ src/ Functional/ Form/ EmailTest.php - Tests that #type 'email' fields are properly validated.
- EntityAutocompleteTest::getAutocompleteResult in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAutocompleteTest.php - Returns the result of an Entity reference autocomplete request.
- EntityResource::createIndividual in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Creates an individual entity.
- EntityResource::patchIndividual in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Patches an individual entity.
- FieldUITest::testFieldUI in core/
modules/ views_ui/ tests/ src/ Functional/ FieldUITest.php - Tests the UI of field handlers.
- FileFieldWidgetTest::testWidgetElement in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - Tests file widget element.
- FormTest::testCheckboxProcessing in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests default value handling for checkboxes.
- FormTest::testDisabledElements in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests handling of disabled elements.
- FormTest::testSelect in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests validation of #type 'select' elements.
- FrameworkTest::drupalGetAjax in core/
modules/ system/ tests/ src/ Functional/ Ajax/ FrameworkTest.php - Requests a path or URL in drupal_ajax format and JSON-decodes the response.
- GetDocumentFromResponseTrait::getDocumentFromResponse in core/
modules/ jsonapi/ tests/ src/ Traits/ GetDocumentFromResponseTrait.php - Retrieve document from response, with basic validation.
- HistoryTest::testHistory in core/
modules/ history/ tests/ src/ Functional/ HistoryTest.php - Verifies that the history endpoints work.
- InternalEntitiesTest::jsonapiGet in core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php - Performs an authenticated request and returns the decoded document.
- JsonApiDocumentTopLevelNormalizerTest::testDenormalize in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - Try to POST a node and check if it exists afterwards.
- JsonApiDocumentTopLevelNormalizerTest::testDenormalizeInvalidTypeAndNoType in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - Tests denormalization for related resources with missing or invalid types.
- JsonApiDocumentTopLevelNormalizerTest::testDenormalizeUuid in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - Try to POST a node and check if it exists afterwards.
- JsonApiFunctionalDateFieldTest::testRead in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalDateFieldTest.php - Tests the GET method.
- JsonApiFunctionalMultilingualTest::testPatchTranslation in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests updating a translation.
- JsonApiFunctionalMultilingualTest::testPatchTranslationFallback in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests updating a translation fallback.
- JsonApiFunctionalMultilingualTest::testReadMultilingual in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests reading multilingual content.
- JsonApiFunctionalTest::testRead in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTest.php - Tests the GET method.
- JsonApiFunctionalTest::testReferencingTwiceRead in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTest.php - Tests the GET method on articles referencing the same tag twice.
- JsonTest::testReversibility in core/
tests/ Drupal/ Tests/ Component/ Serialization/ JsonTest.php - Tests converting PHP variables to JSON strings and back.
- JsonTest::testStructuredReversibility in core/
tests/ Drupal/ Tests/ Component/ Serialization/ JsonTest.php - Tests the reversibility of structured data.
- LanguageSelectElementTest::testHiddenLanguageSelectElement in core/
modules/ system/ tests/ src/ Functional/ Form/ LanguageSelectElementTest.php - Tests the case when the language select elements should not be printed.
- LinksetControllerMultiLingualTest::testBasicMultilingualFunctions in core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerMultiLingualTest.php - Test core functions of the linkset for multilingual behavior.
- LinksetControllerMultiLingualTest::testDefaultMultilingualFunctions in core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerMultiLingualTest.php - Test core functions of the linkset for multilingual behavior.
- LinksetControllerTest::testBasicFunctions in core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerTest.php - Test core functions of the linkset endpoint.
- LinksetControllerTestBase::getReferenceLinksetDataFromFile in core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerTestBase.php - Retrieve reference linkset controller output adjusted for proper base URL.
- MenuLinkContentTest::testLinkOptionsSerialization in core/
modules/ jsonapi/ tests/ src/ Functional/ MenuLinkContentTest.php - Tests requests using a serialized field item property.
- NodeActionsConfigurationTest::testAssignOwnerNodeActionAutocomplete in core/
modules/ action/ tests/ src/ Functional/ Node/ NodeActionsConfigurationTest.php - Tests the autocomplete field when configuring the AssignOwnerNode action.
- OEmbedTestTrait::hijackProviderEndpoints in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Ensures that oEmbed provider endpoints use the test resource route.
- OffCanvasDialogTest::testDialog in core/
modules/ system/ tests/ src/ Functional/ Ajax/ OffCanvasDialogTest.php - Tests sending AJAX requests to open and manipulate off-canvas dialog.
- ProviderRepository::getAll in core/
modules/ media/ src/ OEmbed/ ProviderRepository.php - RenderWebTest::testWrapperFormatCacheContext in core/
modules/ system/ tests/ src/ Functional/ Common/ RenderWebTest.php - Asserts the cache context for the wrapper format is always present.
- ResourceFetcher::fetchResource in core/
modules/ media/ src/ OEmbed/ ResourceFetcher.php - ResourceFetcher::parseResourceXml in core/
modules/ media/ src/ OEmbed/ ResourceFetcher.php - Parses XML resource data.
- ResourceResponseTestTrait::toResourceResponse in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceResponseTestTrait.php - Maps a response object to a JSON:API ResourceResponse.
- ResourceTestBase::assertResourceResponse in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Asserts that a resource response has the given status code and body.
- ResponseTest::testFormResponse in core/
modules/ system/ tests/ src/ Functional/ Form/ ResponseTest.php - Tests that enforced responses propagate through subscribers and middleware.
- SecurityAdvisoriesFetcher::getSecurityAdvisories in core/
modules/ system/ src/ SecurityAdvisories/ SecurityAdvisoriesFetcher.php - Gets security advisories that are applicable for the current site.
- SelectionTest::testAutocompleteOutput in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ Views/ SelectionTest.php - Tests that the Views selection handles the views output properly.
- StateValuesCleanTest::testFormStateValuesClean in core/
modules/ system/ tests/ src/ Functional/ Form/ StateValuesCleanTest.php - Tests \Drupal\Core\Form\FormState::cleanValues().
- StyleSerializerEntityTest::testFieldRawOutput in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerEntityTest.php - Tests the raw output options for row field rendering.
- StyleSerializerEntityTest::testRestRenderCaching in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerEntityTest.php - Tests REST export with views render caching enabled.
- StyleSerializerEntityTest::testUIFieldAlias in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerEntityTest.php - Tests the field ID alias functionality of the DataFieldRow plugin.
- StyleSerializerTest::testRestViewExposedFilter in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerTest.php - Tests the exposed filter works.
- TermAutocompleteTest::drupalGetJson in core/
modules/ taxonomy/ tests/ src/ Functional/ TermAutocompleteTest.php - Helper function for JSON formatted requests.
- TermTest::testGetIndividualTermWithParent in core/
modules/ jsonapi/ tests/ src/ Functional/ TermTest.php - Tests GETting a term with a parent term other than the default <root> (0).
- ThemeTest::testThemeOnNonHtmlRequest in core/
modules/ system/ tests/ src/ Functional/ Theme/ ThemeTest.php - Ensures that non-HTML requests never initialize themes.
- TimestampFormatterWithTimeDiffTest::testNoRefreshInterval in core/
tests/ Drupal/ FunctionalJavascriptTests/ Core/ Field/ TimestampFormatterWithTimeDiffTest.php - Tests the 'timestamp' formatter without refresh interval.
- UrlTest::testFormUrl in core/
modules/ system/ tests/ src/ Functional/ Form/ UrlTest.php - Tests that #type 'url' fields are properly validated and trimmed.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.