You are here

protected static property BlockListOverrideTest::$replace in Block List Override 1.0.x

Values to override.

Array of configuration options with the rule to use and the ID of a block the rule should show/hide.

File

tests/src/Functional/BlockListOverrideTest.php, line 35

Class

BlockListOverrideTest
Tests for the Block List Override module.

Namespace

Drupal\Tests\block_list_override\Functional

Code

protected static $replace = [
  'system_match' => [
    'label' => 'System List Match',
    'rule' => 'user_login_block',
    'hides' => 'user_login_block',
  ],
  'system_prefix' => [
    'label' => 'System List Prefix',
    'rule' => 'system_menu_block',
    'hides' => 'system_menu_block:admin',
  ],
  'system_regex' => [
    'label' => 'System List Regex',
    'rule' => '/local_(.*)_block/',
    'hides' => 'local_tasks_block',
  ],
  'layout_match' => [
    'label' => 'Layout Builder List Match',
    'rule' => 'page_title_block',
    'hides' => 'page_title_block',
  ],
  'layout_prefix' => [
    'label' => 'Layout Builder List Prefix',
    'rule' => 'extra_field_block',
    'hides' => 'extra_field_block:user:user:member_for',
  ],
  'layout_regex' => [
    'label' => 'Layout Builder List Regex',
    'rule' => '/system_(.*)_block/',
    'hides' => 'system_powered_by_block',
  ],
];