protected function getTreeNodeCustomisations()
    {
        $rootTitle = $this->getCMSTreeTitle();
        return function (SiteTree $node) use ($rootTitle) {
            return [
                'listViewLink' => $this->LinkListViewChildren($node->ID),
                'rootTitle' => $rootTitle,
                'extraClass' => $this->getTreeNodeClasses($node),
                'Title' => _t(
                    self::class . '.PAGETYPE_TITLE',
                    '(Page type: {type}) {title}',
                    [
                        'type' => $node->i18n_singular_name(),
                        'title' => $node->Title,
                    ]
                )
            ];
        };
    }
protected function getTreeNodeCustomisations()
    {
        $rootTitle = $this->getCMSTreeTitle();
        return function (SiteTree $node) use ($rootTitle) {
            return [
                'listViewLink' => $this->LinkListViewChildren($node->ID),
                'rootTitle' => $rootTitle,
                'extraClass' => $this->getTreeNodeClasses($node),
                'Title' => _t(
                    self::class . '.PAGETYPE_TITLE',
                    '(Page type: {type}) {title}',
                    [
                        'type' => $node->i18n_singular_name(),
                        'title' => $node->Title,
                    ]
                )
            ];
        };
    }
protected function getTreeNodeCustomisations ( ) { $ rootTitle = $ this -> getCMSTreeTitle ( ) ; return function ( SiteTree $ node ) use ( $ rootTitle ) { return [ 'listViewLink' => $ this -> LinkListViewChildren ( $ node -> ID ) , 'rootTitle' => $ rootTitle , 'extraClass' => $ this -> getTreeNodeClasses ( $ node ) , 'Title' => _t ( self :: class . '.PAGETYPE_TITLE' , '(Page type: {type}) {title}' , [ 'type' => $ node -> i18n_singular_name ( ) , 'title' => $ node -> Title , ] ) ] ; } ; }
Get callback to determine template customisations for nodes

@return callable
Get callback to determine template customisations for nodes