mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-18 15:41:26 +02:00
[ticket/17414] Add get_hidden_fields to interface
PHPBB-17414
This commit is contained in:
@@ -74,6 +74,19 @@ class legacy_wrapper implements plugin_interface
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function get_hidden_fields(): array
|
||||
{
|
||||
if (method_exists($this->legacy_captcha, 'get_hidden_fields'))
|
||||
{
|
||||
return $this->legacy_captcha->get_hidden_fields();
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
@@ -52,6 +52,13 @@ interface plugin_interface
|
||||
*/
|
||||
public function init(int $type): void;
|
||||
|
||||
/**
|
||||
* Get hidden form fields for this captcha plugin
|
||||
*
|
||||
* @return array Hidden form fields
|
||||
*/
|
||||
public function get_hidden_fields(): array;
|
||||
|
||||
/**
|
||||
* Validate the captcha with the given request data
|
||||
*
|
||||
|
Reference in New Issue
Block a user