Same name in other branches
- 5.0.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase
- 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
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 dans advagg_validator/
src/ Form/ BaseValidatorForm.php
Fichier
-
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
Titre Trier par ordre décroissant | Modifiers | Object type | Résumé | Overrides |
---|---|---|---|---|
AdvaggFormBase::create | public static | function | 1 | |
AdvaggFormBase::isAjax | protected | function | Checks if the form was submitted by AJAX. |