| @@ -243,8 +243,9 @@ | ||
| 243 | 243 | case 'options': |
| 244 | 244 | case 'key': |
| 245 | 245 | return $this->{$field}; |
| 246 | 246 | default: |
| 247 | + // translators: 1: class name, 2: property name. | |
| 247 | 248 | throw new Exception( sprintf( esc_html__( 'Invalid %1$s property: %2$s', 'cmb2' ), __CLASS__, $field ) ); |
| 248 | 249 | } |
| 249 | 250 | } |
| 250 | 251 | } |