Commit 1513f1cd authored by catch's avatar catch
Browse files

Issue #3346560 by DieterHolvoet, smustgrave: Allow extending StatusMessages class

(cherry picked from commit fdf05ab0)
parent 3400fd6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ public function getInfo() {
      // of that specific type.
      '#display' => NULL,
      '#pre_render' => [
        self::class . '::generatePlaceholder',
        static::class . '::generatePlaceholder',
      ],
      '#include_fallback' => FALSE,
    ];
@@ -47,7 +47,7 @@ public function getInfo() {
   */
  public static function generatePlaceholder(array $element) {
    $build = [
      '#lazy_builder' => [self::class . '::renderMessages', [$element['#display']]],
      '#lazy_builder' => [static::class . '::renderMessages', [$element['#display']]],
      '#create_placeholder' => TRUE,
    ];