API / Minn\Rest / GlobalStylesParams

GlobalStylesParams final class

Minn\Rest\GlobalStylesParams · public/minn/src/Minn/Rest/GlobalStylesParams.php · 22 lines · implements Minn\Http\RouteParams

A global styles update's parameters as the reference declares them: its styles and settings, each an object, and its title, then the fields plugins register for wp_global_styles (Minn Admin's own among them). Each is held to its type before the caller is judged; the id is the path's alone, and a key the update does not know is ignored.

Constants and properties

privateUPDATE = array ( 'styles' => array ( 'description' => 'Global styles.', 'type' => array ( 0 => 'object', ), 'required' => false, ), 'settings' => array ( 'description' => 'Global settings.', 'type' => array ( 0 => 'object', ), 'required' => false, ), 'title' => array ( 'description' => 'Title of the global styles variation.', 'type' => array ( 0 => 'object', 1 => 'string', ), 'properties' => array ( 'raw' => array ( 'description' => 'Title for the global styles variation, as it exists in the database.', 'type' => 'string', 'context' => array ( 0 => 'view', 1 => 'edit', 2 => 'embed', ), ), 'rendered' => array ( 'description' => 'HTML title for the post, transformed for display.', 'type' => 'string', 'context' => array ( 0 => 'view', 1 => 'edit', 2 => 'embed', ), 'readonly' => true, ), ), 'required' => false, ), )

Public

staticfor(array $captures): array#

The update's parameters; the route's id capture changes none of them.