Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
BanAdminTest.php file core/modules/ban/tests/src/Unit/BanAdminTest.php
BanAdminTest::getIpManagerMock function core/modules/ban/tests/src/Unit/BanAdminTest.php Get the mocked IP manager service.
BanAdminTest::getRequestStackMock function core/modules/ban/tests/src/Unit/BanAdminTest.php Get a request stack with a dummy IP.
BanAdminTest::providerIpValidation function core/modules/ban/tests/src/Unit/BanAdminTest.php Data provider for testIpValidation().
BanAdminTest::testIpValidation function core/modules/ban/tests/src/Unit/BanAdminTest.php Tests various user input to confirm correct validation.
BanAdminTest::testRouteParameter function core/modules/ban/tests/src/Unit/BanAdminTest.php Test passing an IP address as a route parameter.
BanAdminTest::testSubmit function core/modules/ban/tests/src/Unit/BanAdminTest.php Test form submission.
Banana class core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php Plugin annotation

@Plugin(
id = "banana",
label = "Banana",
color = "yellow",
uses = {
"bread" = @Translation("Banana bread"),
"loaf" = @PluralTranslation(
singular = "@count loaf",
plural = "@count loaves"
)
}
)
Banana.php file core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/Banana.php
BanDelete class core/modules/ban/src/Form/BanDelete.php Provides a form to unban IP addresses.
BanDelete.php file core/modules/ban/src/Form/BanDelete.php
BanDelete::$banIp property core/modules/ban/src/Form/BanDelete.php The banned IP address.
BanDelete::$ipManager property core/modules/ban/src/Form/BanDelete.php The IP manager.
BanDelete::buildForm function core/modules/ban/src/Form/BanDelete.php
BanDelete::create function core/modules/ban/src/Form/BanDelete.php Instantiates a new instance of this class.
BanDelete::getCancelUrl function core/modules/ban/src/Form/BanDelete.php Returns the route to go to if the user cancels the action.
BanDelete::getConfirmText function core/modules/ban/src/Form/BanDelete.php Returns a caption for the button that confirms the action.
BanDelete::getFormId function core/modules/ban/src/Form/BanDelete.php Returns a unique string identifying the form.
BanDelete::getQuestion function core/modules/ban/src/Form/BanDelete.php Returns the question to ask the user.
BanDelete::submitForm function core/modules/ban/src/Form/BanDelete.php Form submission handler.
BanDelete::__construct function core/modules/ban/src/Form/BanDelete.php Constructs a new BanDelete object.
BanIpManager class core/modules/ban/src/BanIpManager.php Ban IP manager.
BanIpManager.php file core/modules/ban/src/BanIpManager.php
BanIpManager::$connection property core/modules/ban/src/BanIpManager.php The database connection used to check the IP against.
BanIpManager::banIp function core/modules/ban/src/BanIpManager.php Bans an IP address.
BanIpManager::findAll function core/modules/ban/src/BanIpManager.php Finds all banned IP addresses.
BanIpManager::findById function core/modules/ban/src/BanIpManager.php Finds a banned IP address by its ID.
BanIpManager::isBanned function core/modules/ban/src/BanIpManager.php Returns if this IP address is banned.
BanIpManager::unbanIp function core/modules/ban/src/BanIpManager.php Removes the ban of an IP address.
BanIpManager::__construct function core/modules/ban/src/BanIpManager.php Constructs a BanIpManager object.
BanIpManagerInterface interface core/modules/ban/src/BanIpManagerInterface.php Provides an interface defining a BanIp manager.
BanIpManagerInterface.php file core/modules/ban/src/BanIpManagerInterface.php
BanIpManagerInterface::banIp function core/modules/ban/src/BanIpManagerInterface.php Bans an IP address.
BanIpManagerInterface::findAll function core/modules/ban/src/BanIpManagerInterface.php Finds all banned IP addresses.
BanIpManagerInterface::findById function core/modules/ban/src/BanIpManagerInterface.php Finds a banned IP address by its ID.
BanIpManagerInterface::isBanned function core/modules/ban/src/BanIpManagerInterface.php Returns if this IP address is banned.
BanIpManagerInterface::unbanIp function core/modules/ban/src/BanIpManagerInterface.php Removes the ban of an IP address.
BanIpTest class core/modules/ban/tests/src/Kernel/BanIpTest.php @group ban
BanIpTest.php file core/modules/ban/tests/src/Kernel/BanIpTest.php
BanIpTest::$modules property core/modules/ban/tests/src/Kernel/BanIpTest.php Modules to install.
BanIpTest::getIpBans function core/modules/ban/tests/src/Kernel/BanIpTest.php Gets the IP bans.
BanIpTest::setUp function core/modules/ban/tests/src/Kernel/BanIpTest.php
BanIpTest::testBanIp function core/modules/ban/tests/src/Kernel/BanIpTest.php Test banning IPs.
BanMiddleware class core/modules/ban/src/BanMiddleware.php Provides a HTTP middleware to implement IP based banning.
BanMiddleware.php file core/modules/ban/src/BanMiddleware.php
BanMiddleware::$banIpManager property core/modules/ban/src/BanMiddleware.php The ban IP manager.
BanMiddleware::$httpKernel property core/modules/ban/src/BanMiddleware.php The decorated kernel.
BanMiddleware::handle function core/modules/ban/src/BanMiddleware.php
BanMiddleware::__construct function core/modules/ban/src/BanMiddleware.php Constructs a BanMiddleware object.
BanMiddlewareTest class core/modules/ban/tests/src/Unit/BanMiddlewareTest.php @coversDefaultClass \Drupal\ban\BanMiddleware[[api-linebreak]]
@group ban

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