public function passive($field = null) {
		if (!$field) {
			$field = $this->getConfig('dummyField') ?: 'email_homepage';
		}
		$dummyFields = (array)$field;

		$html = [];
		foreach ($dummyFields as $dummyField) {
			$html[] = '<div style="display: none">' . $this->Form->control($dummyField, ['value' => '']) . '</div>';
		}
		return implode(PHP_EOL, $html);
	}
public function passive($field = null) {
		if (!$field) {
			$field = $this->getConfig('dummyField') ?: 'email_homepage';
		}
		$dummyFields = (array)$field;

		$html = [];
		foreach ($dummyFields as $dummyField) {
			$html[] = '<div style="display: none">' . $this->Form->control($dummyField, ['value' => '']) . '</div>';
		}
		return implode(PHP_EOL, $html);
	}
public function passive ( $ field = null ) { if ( ! $ field ) { $ field = $ this -> getConfig ( 'dummyField' ) ? : 'email_homepage' ; } $ dummyFields = ( array ) $ field ; $ html = [ ] ; foreach ( $ dummyFields as $ dummyField ) { $ html [ ] = '<div style="display: none">' . $ this -> Form -> control ( $ dummyField , [ 'value' => '' ] ) . '</div>' ; } return implode ( PHP_EOL , $ html ) ; }
Add a honey pot trap field. Requires corresponding validation to be activated.

If you pass null, it will use the configured default field name.

@param string|array|null $field

@return string
Add a honey pot trap field . Requires corresponding validation to be activated .