Search for add

  1. Search 7.x for add
  2. Search 8.9.x for add
  3. Search 10.3.x for add
  4. Search 11.x for add
  5. Other projects
Title Object type File name Summary
AddFormBase::create function core/modules/media_library/src/Form/AddFormBase.php Instantiates a new instance of this class.
AddFormBase::createMediaFromValue function core/modules/media_library/src/Form/AddFormBase.php Creates a new, unsaved media item from a source field value.
AddFormBase::getAddedMediaItems function core/modules/media_library/src/Form/AddFormBase.php Get all added media items from the form state.
AddFormBase::getBaseFormId function core/modules/media_library/src/Form/AddFormBase.php Returns a string identifying the base form.
AddFormBase::getCurrentMediaItems function core/modules/media_library/src/Form/AddFormBase.php Get all pre-selected and added media items from the form state.
AddFormBase::getMediaLibraryState function core/modules/media_library/src/Form/AddFormBase.php Get the media library state from the form state.
AddFormBase::getMediaType function core/modules/media_library/src/Form/AddFormBase.php Get the media type from the form state.
AddFormBase::getPreSelectedMediaItems function core/modules/media_library/src/Form/AddFormBase.php Get all pre-selected media items from the form state.
AddFormBase::getSourceFieldName function core/modules/media_library/src/Form/AddFormBase.php Returns the name of the source field for a media type.
AddFormBase::isAdvancedUi function core/modules/media_library/src/Form/AddFormBase.php Determines if the "advanced UI" of the Media Library is enabled.
AddFormBase::prepareMediaEntityForSave function core/modules/media_library/src/Form/AddFormBase.php Prepares a created media item to be permanently saved.
AddFormBase::preRenderAddedMedia function core/modules/media_library/src/Form/AddFormBase.php Converts the set of newly added media into an item list for rendering.
AddFormBase::processInputValues function core/modules/media_library/src/Form/AddFormBase.php Creates media items from source field input values.
AddFormBase::removeButtonSubmit function core/modules/media_library/src/Form/AddFormBase.php Submit handler for the remove button.
AddFormBase::submitForm function core/modules/media_library/src/Form/AddFormBase.php Form submission handler.
AddFormBase::trustedCallbacks function core/modules/media_library/src/Form/AddFormBase.php Lists the trusted callbacks provided by the implementing class.
AddFormBase::updateFormCallback function core/modules/media_library/src/Form/AddFormBase.php AJAX callback to update the entire form based on source field input.
AddFormBase::updateLibrary function core/modules/media_library/src/Form/AddFormBase.php AJAX callback to send the new media item(s) to the media library.
AddFormBase::updateWidget function core/modules/media_library/src/Form/AddFormBase.php AJAX callback to send the new media item(s) to the calling code.
AddFormBase::validateForm function core/modules/media_library/src/Form/AddFormBase.php Form validation handler.
AddFormBase::validateMediaEntity function core/modules/media_library/src/Form/AddFormBase.php Validate a created media item.
AddFormBase::__construct function core/modules/media_library/src/Form/AddFormBase.php Constructs an AddFormBase object.
AddHandler class core/modules/views_ui/src/Form/Ajax/AddHandler.php Provides a form for adding an item in the Views UI.
AddHandler.php file core/modules/views_ui/src/Form/Ajax/AddHandler.php
AddHandler::buildForm function core/modules/views_ui/src/Form/Ajax/AddHandler.php Form constructor.
AddHandler::getForm function core/modules/views_ui/src/Form/Ajax/AddHandler.php Creates a new instance of this form.
AddHandler::getFormId function core/modules/views_ui/src/Form/Ajax/AddHandler.php Returns a unique string identifying the form.
AddHandler::getFormKey function core/modules/views_ui/src/Form/Ajax/AddHandler.php Returns the key that represents this form.
AddHandler::__construct function core/modules/views_ui/src/Form/Ajax/AddHandler.php Constructs a new AddHandler object.
AddJsCommand class core/lib/Drupal/Core/Ajax/AddJsCommand.php An AJAX command for adding JS to the page via AJAX.
AddJsCommand.php file core/lib/Drupal/Core/Ajax/AddJsCommand.php
AddJsCommand::$scripts property core/lib/Drupal/Core/Ajax/AddJsCommand.php An array containing attributes of the scripts to be added to the page.
AddJsCommand::$selector property core/lib/Drupal/Core/Ajax/AddJsCommand.php A CSS selector string.
AddJsCommand::render function core/lib/Drupal/Core/Ajax/AddJsCommand.php Return an array to be run through json_encode and sent to the client.
AddJsCommand::__construct function core/lib/Drupal/Core/Ajax/AddJsCommand.php Constructs an AddJsCommand.
AddRoleUser class core/modules/user/src/Plugin/Action/AddRoleUser.php Adds a role to a user.
AddRoleUser.php file core/modules/user/src/Plugin/Action/AddRoleUser.php
AddRoleUser::execute function core/modules/user/src/Plugin/Action/AddRoleUser.php Executes the plugin.
AddRoleUserTest class core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php @coversDefaultClass \Drupal\user\Plugin\Action\AddRoleUser
@group user
AddRoleUserTest.php file core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php
AddRoleUserTest::testExecuteAddExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php Tests the execute method on a user with a role.
AddRoleUserTest::testExecuteAddNonExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php Tests the execute method on a user without a specific role.
AddSectionController class core/modules/layout_builder/src/Controller/AddSectionController.php Defines a controller to add a new section.
AddSectionController.php file core/modules/layout_builder/src/Controller/AddSectionController.php
AddSectionController::$layoutTempstoreRepository property core/modules/layout_builder/src/Controller/AddSectionController.php The layout tempstore repository.
AddSectionController::build function core/modules/layout_builder/src/Controller/AddSectionController.php Adds the new section.
AddSectionController::create function core/modules/layout_builder/src/Controller/AddSectionController.php Instantiates a new instance of this class.
AddSectionController::__construct function core/modules/layout_builder/src/Controller/AddSectionController.php AddSectionController constructor.
AddStyleSheetCommand class core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php AJAX command to add style sheets to a CKEditor instance.
AddStyleSheetCommand.php file core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php

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