You are here

Broken.php in Drupal 9

File

core/modules/views/src/Plugin/views/area/Broken.php
View source
<?php

namespace Drupal\views\Plugin\views\area;

use Drupal\views\Plugin\views\BrokenHandlerTrait;

/**
 * A special handler to take the place of missing or broken handlers.
 *
 * @ingroup views_area_handlers
 *
 * @ViewsArea("broken")
 */
class Broken extends AreaPluginBase {
  use BrokenHandlerTrait;

  /**
   * {@inheritdoc}
   */
  public function render($empty = FALSE) {

    // Simply render nothing by returning an empty render array.
    return [];
  }

}

Classes

Namesort descending Description
Broken A special handler to take the place of missing or broken handlers.