/**
  * Sets the storage to use.
  *
  * @param WPSEO_Configuration_Storage $storage Storage to use.
  */
 public function set_storage(WPSEO_Configuration_Storage $storage)
 {
     $this->set_adapter($storage->get_adapter());
     foreach ($this->components as $component) {
         $storage->add_field($component->get_field());
     }
 }
 /**
  * Used by endpoint to store changes
  *
  * @param WP_REST_Request $request Request from the REST API.
  *
  * @return array List of feedback per option if saving succeeded.
  */
 public function set_configuration(WP_REST_Request $request)
 {
     return $this->storage->store($request->get_json_params());
 }