コード例 #1
0
 /**
  * Disables a ConfigTest object.
  *
  * @param \Drupal\config_test\ConfigTest $config_test
  *   The ConfigTest object to disable.
  *
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  *   A redirect response to the config_test listing page.
  */
 function disable(ConfigTest $config_test)
 {
     $config_test->disable()->save();
     return new RedirectResponse(url('admin/structure/config_test', array('absolute' => TRUE)));
 }
コード例 #2
0
 /**
  * Disables a ConfigTest object.
  *
  * @param \Drupal\config_test\ConfigTest $config_test
  *   The ConfigTest object to disable.
  *
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  *   A redirect response to the config_test listing page.
  */
 function disable(ConfigTest $config_test)
 {
     $config_test->disable()->save();
     return new RedirectResponse($config_test->url('collection', array('absolute' => TRUE)));
 }
コード例 #3
0
 /**
  * Disables a ConfigTest object.
  *
  * @param \Drupal\config_test\ConfigTest $config_test
  *   The ConfigTest object to disable.
  *
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  *   A redirect response to the config_test listing page.
  */
 function disable(ConfigTest $config_test)
 {
     $config_test->disable()->save();
     return new RedirectResponse(\Drupal::url('config_test.list_page', array(), array('absolute' => TRUE)));
 }