class TestController

Test controller.

Hierarchy

  • class \Drupal\tmgmt_test\TestController extends \Drupal\Core\Controller\ControllerBase

Expanded class hierarchy of TestController

File

tmgmt_test/src/TestController.php, line 12

Namespace

Drupal\tmgmt_test
View source
class TestController extends ControllerBase {

  /**
   * Callback to add given job item into the cart.
   */
  function addToCart(JobItemInterface $tmgmt_job_item) {
    tmgmt_cart_get()
      ->addExistingJobItems(array(
      $tmgmt_job_item,
    ));
    return new Response('', 204);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestController::addToCart function Callback to add given job item into the cart.