Search for all
Title | Object type | File name | Summary |
---|---|---|---|
BanAdminTest.php | file | core/ |
|
BanAdminTest::getIpManagerMock | function | core/ |
Get the mocked IP manager service. |
BanAdminTest::getRequestStackMock | function | core/ |
Get a request stack with a dummy IP. |
BanAdminTest::providerIpValidation | function | core/ |
Data provider for testIpValidation(). |
BanAdminTest::testIpValidation | function | core/ |
Tests various user input to confirm correct validation. |
BanAdminTest::testRouteParameter | function | core/ |
Test passing an IP address as a route parameter. |
BanAdminTest::testSubmit | function | core/ |
Test form submission. |
Banana | class | core/ |
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/ |
|
BanDelete | class | core/ |
Provides a form to unban IP addresses. |
BanDelete.php | file | core/ |
|
BanDelete::$banIp | property | core/ |
The banned IP address. |
BanDelete::$ipManager | property | core/ |
The IP manager. |
BanDelete::buildForm | function | core/ |
|
BanDelete::create | function | core/ |
Instantiates a new instance of this class. |
BanDelete::getCancelUrl | function | core/ |
Returns the route to go to if the user cancels the action. |
BanDelete::getConfirmText | function | core/ |
Returns a caption for the button that confirms the action. |
BanDelete::getFormId | function | core/ |
Returns a unique string identifying the form. |
BanDelete::getQuestion | function | core/ |
Returns the question to ask the user. |
BanDelete::submitForm | function | core/ |
Form submission handler. |
BanDelete::__construct | function | core/ |
Constructs a new BanDelete object. |
BanIpManager | class | core/ |
Ban IP manager. |
BanIpManager.php | file | core/ |
|
BanIpManager::$connection | property | core/ |
The database connection used to check the IP against. |
BanIpManager::banIp | function | core/ |
Bans an IP address. |
BanIpManager::findAll | function | core/ |
Finds all banned IP addresses. |
BanIpManager::findById | function | core/ |
Finds a banned IP address by its ID. |
BanIpManager::isBanned | function | core/ |
Returns if this IP address is banned. |
BanIpManager::unbanIp | function | core/ |
Removes the ban of an IP address. |
BanIpManager::__construct | function | core/ |
Constructs a BanIpManager object. |
BanIpManagerInterface | interface | core/ |
Provides an interface defining a BanIp manager. |
BanIpManagerInterface.php | file | core/ |
|
BanIpManagerInterface::banIp | function | core/ |
Bans an IP address. |
BanIpManagerInterface::findAll | function | core/ |
Finds all banned IP addresses. |
BanIpManagerInterface::findById | function | core/ |
Finds a banned IP address by its ID. |
BanIpManagerInterface::isBanned | function | core/ |
Returns if this IP address is banned. |
BanIpManagerInterface::unbanIp | function | core/ |
Removes the ban of an IP address. |
BanIpTest | class | core/ |
@group ban |
BanIpTest.php | file | core/ |
|
BanIpTest::$modules | property | core/ |
Modules to install. |
BanIpTest::getIpBans | function | core/ |
Gets the IP bans. |
BanIpTest::setUp | function | core/ |
|
BanIpTest::testBanIp | function | core/ |
Test banning IPs. |
BanMiddleware | class | core/ |
Provides a HTTP middleware to implement IP based banning. |
BanMiddleware.php | file | core/ |
|
BanMiddleware::$banIpManager | property | core/ |
The ban IP manager. |
BanMiddleware::$httpKernel | property | core/ |
The decorated kernel. |
BanMiddleware::handle | function | core/ |
|
BanMiddleware::__construct | function | core/ |
Constructs a BanMiddleware object. |
BanMiddlewareTest | class | core/ |
@coversDefaultClass \Drupal\ban\BanMiddleware[[api-linebreak]] @group ban |
Pagination
- Previous page
- Page 68
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.