Same name in other branches
- 6.0.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase
- 8.x-2.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase
- 8.x-3.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase
- 8.x-4.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase
View AdvAgg information for this site.
Hierarchy
- class \Drupal\advagg\Form\AdvaggFormBase extends \Drupal\Core\Form\ConfigFormBase
Expanded class hierarchy of AdvaggFormBase
1 file declares its use of AdvaggFormBase
- BaseValidatorForm.php in advagg_validator/
src/ Form/ BaseValidatorForm.php
File
-
src/
Form/ AdvaggFormBase.php, line 12
Namespace
Drupal\advagg\FormView source
abstract class AdvaggFormBase extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
/**
* @var \Drupal\advagg\Form\AdvaggFormBase
*/
$instance = parent::create($container);
$instance->setRequestStack($container->get('request_stack'));
return $instance;
}
/**
* Checks if the form was submitted by AJAX.
*
* @return bool
* TRUE if the form was submitted via AJAX, otherwise FALSE.
*/
protected function isAjax() {
$request = $this->requestStack
->getCurrentRequest();
if ($request->query
->has(FormBuilderInterface::AJAX_FORM_REQUEST)) {
return TRUE;
}
return FALSE;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
AdvaggFormBase::create | public static | function | 1 | |
AdvaggFormBase::isAjax | protected | function | Checks if the form was submitted by AJAX. |