424. Class

424.1. Zend\Form\Element\Csrf

424.1.1. Methods

424.1.1.1. setOptions

setOptions()

Accepted options for Csrf: - csrf_options: an array used in the Csrf

Parameters:array|Traversable
Return type:Csrf

424.1.1.2. getCsrfValidatorOptions

getCsrfValidatorOptions()

@return array

424.1.1.3. setCsrfValidatorOptions

setCsrfValidatorOptions()

@param array $options

Return type:Csrf

424.1.1.4. getCsrfValidator

getCsrfValidator()

Get CSRF validator

Return type:CsrfValidator

424.1.1.5. setCsrfValidator

setCsrfValidator()

@param ZendValidatorCsrf $validator

Return type:Csrf

424.1.1.6. getValue

getValue()

Retrieve value

Retrieves the hash from the validator

Return type:string

424.1.1.7. getAttributes

getAttributes()

Override: get attributes

Seeds ‘value’ attribute with validator hash

Return type:array

424.1.1.8. getInputSpecification

getInputSpecification()

Provide default input rules for this element

Attaches the captcha as a validator.

Return type:array

424.1.1.9. prepareElement

prepareElement()

Prepare the form element