FormAjaxSubscriber

Wraps AJAX form submissions that are triggered via an exception.

Hierarchy

File

core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 22

Namespace

Drupal\Core\Form\EventSubscriber

Members

Name Modifiers Type Description
FormAjaxSubscriber::$formAjaxResponseBuilder protected property The form AJAX response builder.
FormAjaxSubscriber::drupalSetMessage protected function Wraps drupal_set_message().
FormAjaxSubscriber::formatSize protected function Wraps format_size()
FormAjaxSubscriber::getFormAjaxException protected function Extracts a form AJAX exception.
FormAjaxSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents
FormAjaxSubscriber::onException public function Catches a form AJAX exception and build a response from it.
FormAjaxSubscriber::onView public function Alters the wrapper format if this is an AJAX form request.
FormAjaxSubscriber::__construct public function Constructs a new FormAjaxSubscriber.
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
doc_Drupal
2016-10-29 09:15:05
Comments
Leave a Comment

Please login to continue.