function FieldBlockDeriverTest::getBlockPluginIds

Same name in other branches
  1. 10 core/modules/layout_builder/tests/src/Kernel/FieldBlockDeriverTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockDeriverTest::getBlockPluginIds()

Get an uncached list of block plugin IDs.

Return value

array A list of block plugin IDs.

1 call to FieldBlockDeriverTest::getBlockPluginIds()
FieldBlockDeriverTest::testFieldBlockDerivers in core/modules/layout_builder/tests/src/Kernel/FieldBlockDeriverTest.php
Tests that field block derivers respect expose_all_field_blocks config.

File

core/modules/layout_builder/tests/src/Kernel/FieldBlockDeriverTest.php, line 73

Class

FieldBlockDeriverTest
Tests field block plugin derivatives.

Namespace

Drupal\Tests\layout_builder\Kernel

Code

private function getBlockPluginIds() : array {
    return \array_keys(\Drupal::service('plugin.manager.block')->getDefinitions());
}

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