8.5.2: How to add Conversation block programmatically?

Permalink
I'm trying to add a Conversation block:
$block = Block::getByName('Conversation');
if (is_object($block)) { \Log::Info('ok');
    $page->addBlock($block, 'Main');
}

But it doesn't find it. I've already tried names: 'Conversation', 'Core Conversation', 'CoreConversation' and by handle 'core_conversation' and 'conversation'.

What is the Conversation block name or handle?

Thank you.

linuxoid
 
linuxoid replied on at Permalink Reply
linuxoid
This seems to add the Conversation block:
$block = BlockType::getByHandle('core_conversation');
if (is_object($block)) {
    $data = array(
        'enablePosting' => 1,
    );
    $page->addBlock($block, 'Main', $data);
}

but when I go to the page the block shows "Loading Conversation" and nothing else. What am I missing?

[SOLVED]
adding 'itemsPerPage' => 20, did the trick