BanDelete::$banIp

The banned IP address. Type: string File core/modules/ban/src/Form/BanDelete.php, line 22 Class BanDelete Provides a form to unban IP addresses. Namespace Drupal\ban\Form Code protected $banIp;

BanDelete

Provides a form to unban IP addresses. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\ban\Form\BanDelete File core/modules/ban/src/Form/BanDelete.php, line 15 Namespace Drupal\ban\Form Members Name Modifiers

BanAdmin::__construct

public BanAdmin::__construct(BanIpManagerInterface $ip_manager) Constructs a new BanAdmin object. Parameters \Drupal\ban\BanIpManagerInterface $ip_manager: File core/modules/ban/src/Form/BanAdmin.php, line 26 Class BanAdmin Displays banned IP addresses. Namespace Drupal\ban\Form Code public function __construct(BanIpManagerInterface $ip_manager) { $this->ipManager = $ip_manager; }

BanAdmin::validateForm

public BanAdmin::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/ban/src/Form/BanAdmin.php, line 102 Class BanAdmin Displays banned IP addresses. Namespace Drupal\ban\Form Code public function validateForm(array &$form, FormStateI

BanAdmin::submitForm

public BanAdmin::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/ban/src/Form/BanAdmin.php, line 118 Class BanAdmin Displays banned IP addresses. Namespace Drupal\ban\Form Code public function submitForm(array &$form, FormStateIn

BanAdmin::getFormId

public BanAdmin::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/ban/src/Form/BanAdmin.php, line 42 Class BanAdmin Displays banned IP addresses. Namespace Drupal\ban\Form Code public function getFormId() { return 'ban_ip_form'; }

BanAdmin::create

public static BanAdmin::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service contain

BanAdmin::buildForm

public BanAdmin::buildForm(array $form, FormStateInterface $form_state, $default_ip = '') Parameters string $default_ip: (optional) IP address to be passed on to \Drupal::formBuilder()->getForm() for use as the default value of the IP address form field. Overrides FormInterface::buildForm File core/modules/ban/src/Form/BanAdmin.php, line 54 Class BanAdmin Displays banned IP addresses. Namespace Drupal\ban\Form Code public function buildForm(array $form, FormStateInterface $form_sta

BanAdmin::$ipManager

Type: \Drupal\ban\BanIpManagerInterface File core/modules/ban/src/Form/BanAdmin.php, line 19 Class BanAdmin Displays banned IP addresses. Namespace Drupal\ban\Form Code protected $ipManager;

BanAdmin

Displays banned IP addresses. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\ban\Form\BanAdmin File core/modules/ban/src/Form/BanAdmin.php, line 14 Namespace Drupal\ban\Form Members Name Modifiers Type Description BanAdmin::$ipManager protected property BanAdmin::bu