public function isRequired($field_key)
    {
        $field = (is_array($field_key)) ? $field_key : $this->getField($field_key);
        return (is_array($field) && array_key_exists('required', $field) && $field['required']);
    }
public function isRequired($field_key)
    {
        $field = (is_array($field_key)) ? $field_key : $this->getField($field_key);
        return (is_array($field) && array_key_exists('required', $field) && $field['required']);
    }
public function isRequired ( $ field_key ) { $ field = ( is_array ( $ field_key ) ) ? $ field_key : $ this -> getField ( $ field_key ) ; return ( is_array ( $ field ) && array_key_exists ( 'required' , $ field ) && $ field [ 'required' ] ) ; }
Is the field required?
@param mixed $field_key Alternatively, you can pass in the field array
@return bool
Is the field required?