17 calls to MediaLibraryState::create() in Drupal 8
- DrupalMediaLibrary::getConfig in core/
modules/ media_library/ src/ Plugin/ CKEditorPlugin/ DrupalMediaLibrary.php - Returns the additions to CKEDITOR.config for a specific CKEditor instance.
- MediaLibraryAccessTest::testEditorOpenerAccess in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAccessTest.php - @covers \Drupal\media_library\MediaLibraryEditorOpener::checkAccess
- MediaLibraryAccessTest::testFieldWidgetEntityCreateAccess in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAccessTest.php - Tests that the field widget opener respects entity creation permissions.
- MediaLibraryAccessTest::testFieldWidgetEntityEditAccess in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAccessTest.php - Tests that the field widget opener respects entity-specific access.
- MediaLibraryAccessTest::testFieldWidgetEntityFieldAccess in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAccessTest.php - Tests that the field widget opener respects entity field-level access.
- MediaLibraryAccessTest::testViewAccess in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAccessTest.php - Tests that media library access respects the media_library view.
- MediaLibraryAddFormTest::buildLibraryUi in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAddFormTest.php - Build the media library UI for a selected type.
- MediaLibraryAddFormTest::testSelectedTypeValidation in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAddFormTest.php - Tests the validation of the selected type in the media library add form.
- MediaLibraryState::fromRequest in core/
modules/ media_library/ src/ MediaLibraryState.php - Get the media library state from a request.
- MediaLibraryStateTest::testCreate in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php - Tests the media library state creation.
- MediaLibraryStateTest::testHashUnaffectedByMediaTypeOrder in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php - Test that hash is unaffected by allowed media type order.
- MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php - Test that hash is unaffected by opener parameter order.
- MediaLibraryStateTest::testMethods in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php - Tests the media library state methods.
- MediaLibraryStateTest::testOpenerParameters in core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php - @covers ::getOpenerParameters
- MediaLibraryUiBuilder::buildMediaTypeMenu in core/
modules/ media_library/ src/ MediaLibraryUiBuilder.php - Get the media type menu for the media library.
- MediaLibraryWidget::formElement in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Returns the form for a single field widget.
- WidgetAccessTest::testWidgetAccess in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetAccessTest.php - Tests that the widget access works as expected.