return !
empty($request->
getPost($this->config->name
));
} /**
* Attaches Honeypot template to response.
*
* @return void
*/
public function attachHoneypot(ResponseInterface
$response) { if ($response->
getCSP()->
enabled()) { // Add id attribute to the container tag.
$this->config->container =
str_ireplace( '>{template}',
' id="' .
$this->config->containerId . '">{template}',
$this->config->container
);
} $prepField =
$this->
prepareTemplate($this->config->template
);
$body =
$response->
getBody();