function BlockContentDevelGenerate::blockContentGetBundles

Returns a list of available block content type names.

This list can include types that are queued for addition or deletion.

Return value

string[] An array of block content type labels, keyed by the block content type name.

1 call to BlockContentDevelGenerate::blockContentGetBundles()
BlockContentDevelGenerate::validateDrushParams in devel_generate/src/Plugin/DevelGenerate/BlockContentDevelGenerate.php
Responsible for validating Drush params.

File

devel_generate/src/Plugin/DevelGenerate/BlockContentDevelGenerate.php, line 489

Class

BlockContentDevelGenerate
Provides a BlockContentDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

public function blockContentGetBundles() : array {
    return array_map(static fn($bundle_info) => $bundle_info['label'], $this->entityTypeBundleInfo
        ->getBundleInfo('block_content'));
}