You are here

class Broken in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken
  2. 10 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken
  3. 10 core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken
  4. 10 core/modules/views/src/Plugin/views/relationship/Broken.php \Drupal\views\Plugin\views\relationship\Broken
  5. 10 core/modules/views/src/Plugin/views/filter/Broken.php \Drupal\views\Plugin\views\filter\Broken
  6. 10 core/modules/views/src/Plugin/views/sort/Broken.php \Drupal\views\Plugin\views\sort\Broken
  7. 10 core/modules/views/src/Plugin/views/argument/Broken.php \Drupal\views\Plugin\views\argument\Broken
  8. 10 core/modules/views/src/Plugin/views/field/Broken.php \Drupal\views\Plugin\views\field\Broken
Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken
  2. 9 core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken

A special handler to take the place of missing or broken handlers.

Plugin annotation

@ViewsArea("broken");

Hierarchy

Expanded class hierarchy of Broken

Related topics

1 file declares its use of Broken
ModuleTest.php in core/modules/views/tests/src/Kernel/ModuleTest.php
6 string references to 'Broken'
View::addDisplay in core/modules/views/src/Entity/View.php
Adds a new display handler to the view, automatically creating an ID.
views.argument.schema.yml in core/modules/views/config/schema/views.argument.schema.yml
core/modules/views/config/schema/views.argument.schema.yml
views.field.schema.yml in core/modules/views/config/schema/views.field.schema.yml
core/modules/views/config/schema/views.field.schema.yml
views.filter.schema.yml in core/modules/views/config/schema/views.filter.schema.yml
core/modules/views/config/schema/views.filter.schema.yml
views.relationship.schema.yml in core/modules/views/config/schema/views.relationship.schema.yml
core/modules/views/config/schema/views.relationship.schema.yml

... See full list

File

core/modules/views/src/Plugin/views/area/Broken.php, line 14

Namespace

Drupal\views\Plugin\views\area
View source
class Broken extends AreaPluginBase {
  use BrokenHandlerTrait;

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
AreaPluginBase::$areaType public property The type of this area handler, i.e. 'header', 'footer', or 'empty'.
AreaPluginBase::adminSummary public function
AreaPluginBase::init public function Overrides Drupal\views\Plugin\views\HandlerBase::init(). 1
AreaPluginBase::isEmpty public function Does that area have nothing to show. 1
AreaPluginBase::preRender public function Performs any operations needed before full rendering. 1
AreaPluginBase::usesGroupBy public function
Broken::render public function Render the area. Overrides AreaPluginBase::render
BrokenHandlerTrait::adminLabel public function Returns this handlers name in the UI.
BrokenHandlerTrait::broken public function Determines if the handler is considered 'broken'.
BrokenHandlerTrait::buildOptionsForm public function Provides a form to edit options for this plugin.
BrokenHandlerTrait::calculateDependencies public function Gets dependencies for a broken handler.
BrokenHandlerTrait::defineOptions public function The option definition for this handler.
BrokenHandlerTrait::ensureMyTable public function Ensure the main table for this handler is in the query. This is used a lot.
BrokenHandlerTrait::query public function Modify the views query.