public function hostingService_example_basic::context_options

7.x-3.x hosting_example.service.inc public hostingService_example_basic::context_options($task_type, $ref_type, &$task)

Pass values to the provision backend when we call provision-save.

By selecting this type we already pass the '--example_service_type=basic' option to the command, which will load the matching provisionService class in the backend.

This backend class will be responsible for receiving and reacting to the options passed here.

Overrides hostingService::context_options

Related topics

File

example/hosting_example.service.inc, line 207
Example service implementation for the hosting front end.

Class

hostingService_example_basic

Code

public function context_options($task_type, $ref_type, &$task) {
  // REMEMBER TO CALL THE PARENT!
  parent::context_options($task_type, $ref_type, $task);

  $task->context_options['example_field'] = $this->example_field;
}