lib/Block/BlockType/BlockTypeGroup.php
public function getBlockTypes(bool $onlyEnabled = false): array
    {
        if (!$onlyEnabled) {
            return $this->blockTypes;
        }

        return array_values(
            array_filter(
                $this->blockTypes,
                static function (BlockType $blockType): bool {
                    return $blockType->isEnabled();
                }
            )
        );
    }
public function getBlockTypes(bool $onlyEnabled = false): array
    {
        if (!$onlyEnabled) {
            return $this->blockTypes;
        }

        return array_values(
            array_filter(
                $this->blockTypes,
                static function (BlockType $blockType): bool {
                    return $blockType->isEnabled();
                }
            )
        );
    }
public function getBlockTypes ( bool $ onlyEnabled = false ) : array { if ( ! $ onlyEnabled ) { return $ this -> blockTypes ; } return array_values ( array_filter ( $ this -> blockTypes , static function ( BlockType $ blockType ) : bool { return $ blockType -> isEnabled ( ) ; } ) ) ; }
Returns the block types in this group.

@param bool $onlyEnabled

@return \Netgen\BlockManager\Block\BlockType\BlockType[]
Returns the block types in this group .