class Broken

Same name in this branch
  1. 9 core/modules/views/src/Plugin/views/sort/Broken.php \Drupal\views\Plugin\views\sort\Broken
  2. 9 core/modules/views/src/Plugin/views/field/Broken.php \Drupal\views\Plugin\views\field\Broken
  3. 9 core/modules/views/src/Plugin/views/relationship/Broken.php \Drupal\views\Plugin\views\relationship\Broken
  4. 9 core/modules/views/src/Plugin/views/filter/Broken.php \Drupal\views\Plugin\views\filter\Broken
  5. 9 core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken
  6. 9 core/modules/views/src/Plugin/views/argument/Broken.php \Drupal\views\Plugin\views\argument\Broken
  7. 9 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken
Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/sort/Broken.php \Drupal\views\Plugin\views\sort\Broken
  2. 8.9.x core/modules/views/src/Plugin/views/field/Broken.php \Drupal\views\Plugin\views\field\Broken
  3. 8.9.x core/modules/views/src/Plugin/views/relationship/Broken.php \Drupal\views\Plugin\views\relationship\Broken
  4. 8.9.x core/modules/views/src/Plugin/views/filter/Broken.php \Drupal\views\Plugin\views\filter\Broken
  5. 8.9.x core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken
  6. 8.9.x core/modules/views/src/Plugin/views/argument/Broken.php \Drupal\views\Plugin\views\argument\Broken
  7. 8.9.x core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken
  8. 8.9.x core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken
  9. 10 core/modules/views/src/Plugin/views/sort/Broken.php \Drupal\views\Plugin\views\sort\Broken
  10. 10 core/modules/views/src/Plugin/views/field/Broken.php \Drupal\views\Plugin\views\field\Broken
  11. 10 core/modules/views/src/Plugin/views/relationship/Broken.php \Drupal\views\Plugin\views\relationship\Broken
  12. 10 core/modules/views/src/Plugin/views/filter/Broken.php \Drupal\views\Plugin\views\filter\Broken
  13. 10 core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken
  14. 10 core/modules/views/src/Plugin/views/argument/Broken.php \Drupal\views\Plugin\views\argument\Broken
  15. 10 core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken
  16. 10 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken
  17. 11.x core/modules/views/src/Plugin/views/sort/Broken.php \Drupal\views\Plugin\views\sort\Broken
  18. 11.x core/modules/views/src/Plugin/views/field/Broken.php \Drupal\views\Plugin\views\field\Broken
  19. 11.x core/modules/views/src/Plugin/views/relationship/Broken.php \Drupal\views\Plugin\views\relationship\Broken
  20. 11.x core/modules/views/src/Plugin/views/filter/Broken.php \Drupal\views\Plugin\views\filter\Broken
  21. 11.x core/modules/views/src/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken
  22. 11.x core/modules/views/src/Plugin/views/argument/Broken.php \Drupal\views\Plugin\views\argument\Broken
  23. 11.x core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken
  24. 11.x core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken

Defines a fallback plugin for missing entity_reference selection plugins.

Plugin annotation


@EntityReferenceSelection(
  id = "broken",
  label = @Translation("Broken/Missing")
)

Hierarchy

Expanded class hierarchy of Broken

20 string references to 'Broken'
BlockManager::getFallbackPluginId in core/lib/Drupal/Core/Block/BlockManager.php
Gets a fallback id for a missing plugin.
BlockManagerTest::testDefinitions in core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php
@covers ::getDefinitions
BlockManagerTest::testHandlePluginNotFound in core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php
@covers ::handlePluginNotFound
BlockResourceTestBase::getExpectedNormalizedEntity in core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php
Returns the expected normalization of the entity.
BlockTest::getExpectedDocument in core/modules/jsonapi/tests/src/Functional/BlockTest.php
Returns the expected JSON:API document for the entity.

... See full list

File

core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php, line 16

Namespace

Drupal\Core\Entity\Plugin\EntityReferenceSelection
View source
class Broken extends SelectionPluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
        $form = parent::buildConfigurationForm($form, $form_state);
        $form['selection_handler'] = [
            '#markup' => $this->t('The selected selection handler is broken.'),
        ];
        return $form;
    }
    
    /**
     * {@inheritdoc}
     */
    public function getReferenceableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0) {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    public function countReferenceableEntities($match = NULL, $match_operator = 'CONTAINS') {
        return 0;
    }
    
    /**
     * {@inheritdoc}
     */
    public function validateReferenceableEntities(array $ids) {
        return [];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
Broken::buildConfigurationForm public function Form constructor. Overrides SelectionPluginBase::buildConfigurationForm
Broken::countReferenceableEntities public function Counts entities that are referenceable. Overrides SelectionInterface::countReferenceableEntities
Broken::getReferenceableEntities public function Gets the list of referenceable entities. Overrides SelectionInterface::getReferenceableEntities
Broken::validateReferenceableEntities public function Validates which existing entities can be referenced. Overrides SelectionInterface::validateReferenceableEntities
SelectionPluginBase::calculateDependencies public function Calculates dependencies for the configured plugin. Overrides DependentPluginInterface::calculateDependencies
SelectionPluginBase::defaultConfiguration public function Gets default configuration for this plugin. Overrides ConfigurableInterface::defaultConfiguration 2
SelectionPluginBase::entityQueryAlter public function Allows the selection to alter the SelectQuery generated by EntityFieldQuery. Overrides SelectionInterface::entityQueryAlter 2
SelectionPluginBase::getConfiguration public function Gets this plugin's configuration. Overrides ConfigurableInterface::getConfiguration
SelectionPluginBase::setConfiguration public function Sets the configuration for this plugin instance. Overrides ConfigurableInterface::setConfiguration
SelectionPluginBase::submitConfigurationForm public function Form submission handler. Overrides PluginFormInterface::submitConfigurationForm
SelectionPluginBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm 1
SelectionPluginBase::__construct public function Constructs a new selection object. 2

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