You are here

public function PanelizerSearchApiAlterCallback::supportsIndex in Panelizer 7.3

Only support indexes with Panelize-able entities.

Overrides SearchApiAbstractAlterCallback::supportsIndex

File

plugins/search_api/PanelizerSearchApiAlterCallback.class.php, line 14
Contains the PanelizerSearchApiAlterCallback class.

Class

PanelizerSearchApiAlterCallback
Search API data alteration callback that adds Panelizer content to items.

Code

public function supportsIndex(SearchApiIndex $index) {
  $panelizer_plugins = panelizer_get_entity_plugins();
  if (isset($panelizer_plugins[$index
    ->getEntityType()])) {
    $plugin = $panelizer_plugins[$index
      ->getEntityType()];
    return !empty($plugin['uses page manager']);
  }
}