protected function isPageIndexable(Item $item)
    {

        // TODO do we still need this?
        // shouldn't those be sorted out by the record monitor / garbage collector already?

        $isIndexable = true;
        $record = $item->getRecord();

        if (isset($GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled'])
            && $record[$GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled']]
        ) {
            $isIndexable = false;
        }

        return $isIndexable;
    }
protected function isPageIndexable(Item $item)
    {

        // TODO do we still need this?
        // shouldn't those be sorted out by the record monitor / garbage collector already?

        $isIndexable = true;
        $record = $item->getRecord();

        if (isset($GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled'])
            && $record[$GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled']]
        ) {
            $isIndexable = false;
        }

        return $isIndexable;
    }
protected function isPageIndexable ( Item $ item ) { // TODO do we still need this? // shouldn't those be sorted out by the record monitor / garbage collector already? $ isIndexable = true ; $ record = $ item -> getRecord ( ) ; if ( isset ( $ GLOBALS [ 'TCA' ] [ 'pages' ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'disabled' ] ) && $ record [ $ GLOBALS [ 'TCA' ] [ 'pages' ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'disabled' ] ] ) { $ isIndexable = false ; } return $ isIndexable ; }
Checks whether we can index this page.

@param Item $item The page we want to index encapsulated in an index queue item
@return bool True if we can index this page, FALSE otherwise
Checks whether we can index this page .