‪TYPO3CMS  10.4
TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuFilterPagesHookInterface Interface Reference

Public Member Functions

bool processFilter (array &$data, array $banUidArray, $spacer, AbstractMenuContentObject $obj)
 

Detailed Description

interface for classes which hook into AbstractMenuContentObject

Definition at line 21 of file AbstractMenuFilterPagesHookInterface.php.

Member Function Documentation

◆ processFilter()

bool TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuFilterPagesHookInterface::processFilter ( array &  $data,
array  $banUidArray,
  $spacer,
AbstractMenuContentObject  $obj 
)

Checks if a page is OK to include in the final menu item array.

Parameters
array$data‪Array of menu items
array$banUidArray‪Array of page uids which are to be excluded
bool$spacer‪If set, then the page is a spacer.
\TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject$obj‪The menu object
Returns
‪bool Returns TRUE if the page can be safely included.