Search for add

  1. Search 8.x-1.x for add
  2. Search 7.x-1.x for add
  3. Search 6.x-1.x for add
  4. Search 4.0.x for add
  5. Other projects
Title Object type File name Summary
AddClass class modules/phpunit_example/src/AddClass.php A class with features to show how to do unit testing.
AddClass.php file modules/phpunit_example/src/AddClass.php
AddClass::add function modules/phpunit_example/src/AddClass.php A simple addition method with validity checking.
AddClassTest class modules/phpunit_example/tests/src/Unit/AddClassTest.php AddClass units tests.
AddClassTest.php file modules/phpunit_example/tests/src/Unit/AddClassTest.php
AddClassTest::addBadDataProvider function modules/phpunit_example/tests/src/Unit/AddClassTest.php Data provider for testAddWithBadDataProvider().
AddClassTest::addDataProvider function modules/phpunit_example/tests/src/Unit/AddClassTest.php Data provider for testAddWithDataProvider().
AddClassTest::testAdd function modules/phpunit_example/tests/src/Unit/AddClassTest.php Very simple test of AddClass::add().
AddClassTest::testAddWithBadDataProvider function modules/phpunit_example/tests/src/Unit/AddClassTest.php Test AddClass::add() with data that should throw an exception.
AddClassTest::testAddWithDataProvider function modules/phpunit_example/tests/src/Unit/AddClassTest.php Test AddClass::add() with a data provider method.
AjaxAddMore class modules/form_api_example/src/Form/AjaxAddMore.php Implements the ajax demo form controller.
AjaxAddMore.php file modules/form_api_example/src/Form/AjaxAddMore.php
AjaxAddMore::addmoreCallback function modules/form_api_example/src/Form/AjaxAddMore.php Callback for both ajax-enabled buttons.
AjaxAddMore::addOne function modules/form_api_example/src/Form/AjaxAddMore.php Submit handler for the "add-one-more" button.
AjaxAddMore::buildForm function modules/form_api_example/src/Form/AjaxAddMore.php Form with 'add more' and 'remove' buttons.
AjaxAddMore::getFormId function modules/form_api_example/src/Form/AjaxAddMore.php Returns a unique string identifying the form.
AjaxAddMore::removeCallback function modules/form_api_example/src/Form/AjaxAddMore.php Submit handler for the "remove one" button.
AjaxAddMore::submitForm function modules/form_api_example/src/Form/AjaxAddMore.php Final submit handler.
AjaxAddRemoveElements class modules/form_api_example/src/Form/AjaxAddRemoveElements.php Example ajax add remove buttons.
AjaxAddRemoveElements.php file modules/form_api_example/src/Form/AjaxAddRemoveElements.php
AjaxAddRemoveElements::addmoreCallback function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Callback for both ajax-enabled buttons.
AjaxAddRemoveElements::addOne function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Submit handler for the "add-one-more" button.
AjaxAddRemoveElements::buildForm function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Form with 'add more' and 'remove' buttons.
AjaxAddRemoveElements::getFormId function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Required by FormBase.
AjaxAddRemoveElements::removeCallback function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Submit handler for the "remove" button.
AjaxAddRemoveElements::submitForm function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Required by FormBase.
AjaxAddRemoveElements::validateForm function modules/form_api_example/src/Form/AjaxAddRemoveElements.php Required by FormBase.
ContentEntityExampleTest::testAddFields function modules/content_entity_example/tests/src/Functional/ContentEntityExampleTest.php Test add new fields to the contact entity.
ContrivedController::add function modules/testing_example/src/Controller/ContrivedController.php Add two numbers.
ContrivedController::displayAddedNumbers function modules/testing_example/src/Controller/ContrivedController.php A controller method which displays a sum in terms of hands.
ContrivedControllerTest::provideTestAdd function modules/testing_example/tests/src/Unit/Controller/ContrivedControllerTest.php Data provider for testAdd().
ContrivedControllerTest::testAdd function modules/testing_example/tests/src/Unit/Controller/ContrivedControllerTest.php Test add.
CronExampleForm::addItems function modules/cron_example/src/Form/CronExampleForm.php Add the items to the queue when signaled by the form.
DbtngExampleAddForm class modules/dbtng_example/src/Form/DbtngExampleAddForm.php Form to add a database entry, with all the interesting fields.
DbtngExampleAddForm.php file modules/dbtng_example/src/Form/DbtngExampleAddForm.php
DbtngExampleAddForm::$currentUser property modules/dbtng_example/src/Form/DbtngExampleAddForm.php The current user.
DbtngExampleAddForm::$repository property modules/dbtng_example/src/Form/DbtngExampleAddForm.php Our database repository service.
DbtngExampleAddForm::buildForm function modules/dbtng_example/src/Form/DbtngExampleAddForm.php Form constructor.
DbtngExampleAddForm::create function modules/dbtng_example/src/Form/DbtngExampleAddForm.php We'll use the ContainerInjectionInterface pattern here to inject the
current user and also get the string_translation service.
DbtngExampleAddForm::getFormId function modules/dbtng_example/src/Form/DbtngExampleAddForm.php Returns a unique string identifying the form.
DbtngExampleAddForm::submitForm function modules/dbtng_example/src/Form/DbtngExampleAddForm.php Form submission handler.
DbtngExampleAddForm::validateForm function modules/dbtng_example/src/Form/DbtngExampleAddForm.php Form validation handler.
DbtngExampleAddForm::__construct function modules/dbtng_example/src/Form/DbtngExampleAddForm.php Construct the new form object.
DisplayManager::addDisplayableItem function modules/phpunit_example/src/DisplayManager.php Add a displayable item.
FapiExampleTest::doTestAjaxAddMore function modules/form_api_example/tests/src/Functional/FapiExampleTest.php Test the Ajax Add More demo form.
FrontPageLinkDependenciesTest::testAddContentMenuItem function modules/testing_example/tests/src/Functional/FrontPageLinkDependenciesTest.php Tests for the existence of a default menu item on the home page.
FrontPageLinkTest::testAddContentMenuItem function modules/testing_example/tests/src/Functional/FrontPageLinkTest.php Tests for the existence of a default menu item on the home page.
ProtectedPrivates::privateAdd function modules/phpunit_example/src/ProtectedPrivates.php A simple addition method with validity checking.
ProtectedPrivates::protectedAdd function modules/phpunit_example/src/ProtectedPrivates.php A simple addition method with validity checking.
ProtectedPrivatesSubclass::subclassProtectedAdd function modules/phpunit_example/tests/src/Unit/Subclasses/ProtectedPrivatesSubclass.php A stub class so we can access a protected method.