array( 'type' => 'string' ), 'bytes' => array( 'type' => 'integer' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } /** * @param array $input Input. * @return array */ protected function run( array $input ) { $data = Toolbox_Repository::export(); return array( 'data' => $data, 'bytes' => strlen( $data ), 'message' => sprintf( /* translators: %d: payload size in bytes */ __( 'Exported %d bytes of configuration.', 'acrossai-abilities-manager' ), strlen( $data ) ), ); } }