public static function for_name($name, $action = 'set') { return new static(sprintf('Cannot %2$s "%1$s". Manipulating a nonce context value is not allowed.', $name, $action)); }
/** * Removes the value with the given name. * * Manipulating values is not allowed. * * @since 3.0.0 * * @param string $name The name of a value. * * @return void * * @throws ContextValueManipulationNotAllowedException */ public function offsetUnset($name) { throw ContextValueManipulationNotAllowedException::for_name($name, 'unset'); }