Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Search main for all
  6. Other projects
Title Object type File name Summary
MediaLibraryState::getOpenerParameters function core/modules/media_library/src/MediaLibraryState.php Returns all opener-specific parameter values.
MediaLibraryState::getSelectedTypeId function core/modules/media_library/src/MediaLibraryState.php Returns the selected media type.
MediaLibraryState::hasSlotsAvailable function core/modules/media_library/src/MediaLibraryState.php Determines if additional media items can be selected.
MediaLibraryState::isValidHash function core/modules/media_library/src/MediaLibraryState.php Validate a hash for the state object.
MediaLibraryState::validateRequiredParameters function core/modules/media_library/src/MediaLibraryState.php Validates the required parameters for a new MediaLibraryState object.
MediaLibraryState::__construct function core/modules/media_library/src/MediaLibraryState.php
MediaLibraryStateTest class core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests the media library state value object.
MediaLibraryStateTest.php file core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php
MediaLibraryStateTest::$modules property core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Modules to enable.
MediaLibraryStateTest::providerCreate function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Data provider for testCreate().
MediaLibraryStateTest::providerFromRequest function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Data provider for testFromRequest().
MediaLibraryStateTest::setUp function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php
MediaLibraryStateTest::testCreate function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests the media library state creation.
MediaLibraryStateTest::testFromRequest function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests the hash validation when the state is created from a request.
MediaLibraryStateTest::testFromRequestQueryLess function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php @covers ::fromRequest[[api-linebreak]]
MediaLibraryStateTest::testHashUnaffectedByMediaTypeOrder function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Test that hash is unaffected by allowed media type order.
MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Test that hash is unaffected by opener parameter order.
MediaLibraryStateTest::testMethods function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests the media library state methods.
MediaLibraryStateTest::testOpenerParameters function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php @covers ::getOpenerParameters[[api-linebreak]]
MediaLibraryTestBase class core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Base class for functional tests of Media Library functionality.
MediaLibraryTestBase.php file core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php
MediaLibraryTestBase::$defaultTheme property core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php The theme to install as the default for testing.
MediaLibraryTestBase::$modules property core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Modules to enable.
MediaLibraryTestBase::addMediaFileToField function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Waits for a file field to exist before uploading.
MediaLibraryTestBase::assertElementExistsAfterWait function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Waits for the specified selector and returns it if not empty.
MediaLibraryTestBase::assertMediaAdded function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts a media item was added, but not yet saved.
MediaLibraryTestBase::assertMediaLibraryGrid function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that the grid display of the widget view is visible.
MediaLibraryTestBase::assertMediaLibraryTable function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that the table display of the widget view is visible.
MediaLibraryTestBase::assertNoMediaAdded function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that media was not added, i.e. due to a validation error.
MediaLibraryTestBase::assertSelectedMediaCount function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts the current text of the selected item counter.
MediaLibraryTestBase::createMediaItems function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Create media items.
MediaLibraryTestBase::getCheckboxes function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Gets all available media item checkboxes.
MediaLibraryTestBase::getSelectionArea function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Gets the "Additional selected media" area after adding new media.
MediaLibraryTestBase::getTypesMenu function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Gets the menu of available media types.
MediaLibraryTestBase::openMediaLibraryForField function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Clicks a button that opens a media widget and confirms it is open.
MediaLibraryTestBase::pressInsertSelected function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Presses the modal's "Insert selected" button.
MediaLibraryTestBase::pressSaveButton function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Clicks "Save" button and waits for AJAX completion.
MediaLibraryTestBase::saveAnd function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Clicks "Save and select||insert" button and waits for AJAX completion.
MediaLibraryTestBase::selectMediaItem function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Selects an item in the media library modal.
MediaLibraryTestBase::switchToMediaLibraryGrid function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Switches to the grid display of the widget view.
MediaLibraryTestBase::switchToMediaLibraryTable function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Switches to the table display of the widget view.
MediaLibraryTestBase::switchToMediaType function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Clicks a media type tab and waits for it to appear.
MediaLibraryTestBase::waitForElementsCount function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Checks for a specified number of specific elements on page after wait.
MediaLibraryTestBase::waitForElementTextContains function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that text appears in an element after a wait.
MediaLibraryTestBase::waitForFieldExists function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Checks for the existence of a field on page after wait.
MediaLibraryTestBase::waitForNoText function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that text does not appear on page after a wait.
MediaLibraryTestBase::waitForText function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that text appears on page after a wait.
MediaLibraryUiBuilder class core/modules/media_library/src/MediaLibraryUiBuilder.php Service which builds the media library.
MediaLibraryUiBuilder.php file core/modules/media_library/src/MediaLibraryUiBuilder.php
MediaLibraryUiBuilder::$entityTypeManager property core/modules/media_library/src/MediaLibraryUiBuilder.php The entity type manager.

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