foreach ($topics as $topic) { $this->renderer->
addCacheableDependency($build,
$topic);
} foreach ($parents as $parent) { $this->renderer->
addCacheableDependency($build,
$parent);
} $this->renderer->
addCacheableDependency($build,
$term);
$is_forum =
empty($term->forum_container->value
);
return [ 'action'
=> ($is_forum) ?
$this->
buildActionLinks($config->
get('vocabulary'
),
$term) :
[],
'forum' =>
$build,
'#cache' =>
[ 'tags' => Cache::
mergeTags($this->nodeEntityTypeDefinition->
getListCacheTags(),
$this->commentEntityTypeDefinition->
getListCacheTags()),
],
];
} /**
* Returns add forum entity form.
*
* @return array
* Render array for the add form.
*/