ManagedFile

Provides an AJAX/progress aware widget for uploading and saving a file. Plugin annotation @FormElement("managed_file") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\Core\Render\Element\FormElement implements FormElementInterfaceclass \Drupal\

MaintenanceModeSubscriber::__construct

public MaintenanceModeSubscriber::__construct(MaintenanceModeInterface $maintenance_mode, ConfigFactoryInterface $config_factory, TranslationInterface $translation, UrlGeneratorInterface $url_generator, AccountInterface $account, BareHtmlPageRendererInterface $bare_html_page_renderer) Constructs a new MaintenanceModeSubscriber. Parameters \Drupal\Core\Site\MaintenanceModeInterface $maintenance_mode: The maintenance mode. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config fa

MaintenanceModeSubscriber::__construct

public MaintenanceModeSubscriber::__construct(MaintenanceModeInterface $maintenance_mode, AccountInterface $account) Constructs a new MaintenanceModeSubscriber. Parameters \Drupal\Core\Site\MaintenanceModeInterface $maintenance_mode: The maintenance mode. \Drupal\Core\Session\AccountInterface $account: The current user. File core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php, line 42 Class MaintenanceModeSubscriber Maintenance mode subscriber to log out users. Namespace

MaintenanceModeSubscriber::onKernelRequestMaintenance

public MaintenanceModeSubscriber::onKernelRequestMaintenance(GetResponseEvent $event) Returns the site maintenance page if the site is offline. Parameters \Symfony\Component\HttpKernel\Event\GetResponseEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 92 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code public function onKernelRequestMaintenance

MaintenanceModeSubscriber::onKernelRequestMaintenance

public MaintenanceModeSubscriber::onKernelRequestMaintenance(GetResponseEvent $event) Logout users if site is in maintenance mode. Parameters \Symfony\Component\HttpKernel\Event\GetResponseEvent $event: The event to process. File core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php, line 53 Class MaintenanceModeSubscriber Maintenance mode subscriber to log out users. Namespace Drupal\user\EventSubscriber Code public function onKernelRequestMaintenance(GetResponseEvent $

MaintenanceModeSubscriber::getSubscribedEvents

public static MaintenanceModeSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priori

MaintenanceModeSubscriber::getSubscribedEvents

public static MaintenanceModeSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priori

MaintenanceModeSubscriber::getSiteMaintenanceMessage

protected MaintenanceModeSubscriber::getSiteMaintenanceMessage() Gets the site maintenance message. Return value \Drupal\Component\Render\MarkupInterface The formatted site maintenance message. File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 137 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code protected function getSiteMaintenanceMessage() { return SafeMarkup::format($this-&g

MaintenanceModeSubscriber::drupalSetMessage

protected MaintenanceModeSubscriber::drupalSetMessage($message = NULL, $type = 'status', $repeat = FALSE) Wraps the drupal_set_message function. File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 146 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code protected function drupalSetMessage($message = NULL, $type = 'status', $repeat = FALSE) { return drupal_set_message($message, $type,

MaintenanceModeSubscriber::$urlGenerator

The url generator. Type: \Drupal\Core\Routing\UrlGeneratorInterface File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 52 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code protected $urlGenerator;