Broken.php

Namespace

Drupal\views\Plugin\views\area

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

Title Deprecated Summary
Broken A special handler to take the place of missing or broken handlers.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.