Verified Commit 8251bf39 authored by Dave Long's avatar Dave Long
Browse files

Merged 10.4.3.

parents 5e9220f2 1d937cf1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9999,8 +9999,8 @@
    },
    "prefer-stable": true,
    "prefer-lowest": false,
    "platform": [],
    "platform-dev": [],
    "platform": {},
    "platform-dev": {},
    "platform-overrides": {
        "php": "8.1.0"
    },
+1 −0
Original line number Diff line number Diff line
@@ -779,6 +779,7 @@ protected function handleException(\Exception $e, $request, $type) {
    if ($e instanceof HttpExceptionInterface) {
      $response = new Response($e->getMessage(), $e->getStatusCode());
      $response->headers->add($e->getHeaders());
      $response->headers->set('Content-Type', 'text/plain');
      return $response;
    }

+4 −11
Original line number Diff line number Diff line
@@ -87,21 +87,14 @@ protected function getHandledFormats() {
   *   The event to process.
   */
  public function on4xx(ExceptionEvent $event) {
    if (($exception = $event->getThrowable()) && $exception instanceof HttpExceptionInterface) {
    // Avoid making a subrequest for 400 errors because the same conditions that
    // caused the 400 error could also happen in the subrequest. This allows 400
    // exceptions to fall through to FinalExceptionSubscriber::on4xx.
    if (($exception = $event->getThrowable()) && $exception instanceof HttpExceptionInterface && $exception->getStatusCode() > 400) {
      $this->makeSubrequest($event, '/system/4xx', $exception->getStatusCode());
    }
  }

  /**
   * Handles a 400 error for HTML.
   *
   * @param \Symfony\Component\HttpKernel\Event\ExceptionEvent $event
   *   The event to process.
   */
  public function on400(ExceptionEvent $event): void {
    throw $event->getThrowable();
  }

  /**
   * Handles a 401 error for HTML.
   *
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public function access($object, ?AccountInterface $account = NULL, $return_as_ob
    $result = $object->access('update', $account, TRUE);

    foreach ($this->getFieldsToUpdate() as $field => $value) {
      $result->andIf($object->{$field}->access('edit', $account, TRUE));
      $result = $result->andIf($object->{$field}->access('edit', $account, TRUE));
    }

    return $return_as_object ? $result : $result->isAllowed();
+4 −1
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
use Drupal\Component\Plugin\Exception\PluginException;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Core\Plugin\DefaultLazyPluginCollection;
use Drupal\views\Plugin\views\display\DisplayPluginInterface;

/**
 * A class which wraps the displays of a view so you can lazy-initialize them.
@@ -59,8 +60,10 @@ public function &get($instance_id) {
   */
  public function clear() {
    foreach (array_filter($this->pluginInstances) as $display) {
      if ($display instanceof DisplayPluginInterface) {
        $display->destroy();
      }
    }

    parent::clear();
  }
Loading