You are here

public function BlockFieldManager::getBlockCategories in Block field 8

Get list of all block categories.

Return value

string[] A numerically indexed array of block categories.

Overrides BlockFieldManagerInterface::getBlockCategories

File

src/BlockFieldManager.php, line 51

Class

BlockFieldManager
Defines a service that manages block plugins for the block field.

Namespace

Drupal\block_field

Code

public function getBlockCategories() {
  return $this->blockManager
    ->getCategories();
}