Namespace
Drupal\advagg\Form
Fichier
-
src/Form/AdvaggFormBase.php
View source
<?php
namespace Drupal\advagg\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormBuilderInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class AdvaggFormBase extends ConfigFormBase {
public static function create(ContainerInterface $container) {
$instance = parent::create($container);
$instance->setRequestStack($container->get('request_stack'));
return $instance;
}
protected function isAjax() {
$request = $this->requestStack
->getCurrentRequest();
if ($request->query
->has(FormBuilderInterface::AJAX_FORM_REQUEST)) {
return TRUE;
}
return FALSE;
}
}
Classes
| Titre |
Deprecated |
Résumé |
| AdvaggFormBase |
|
View AdvAgg information for this site. |