You are here

function hook_tmgmt_content_list_query_alter in Translation Management Tool 8

Allows to alter $query used to list entities on specific entity type overview pages.

See also

TMGMTEntityDefaultSourceUIController

Related topics

File

sources/content/tmgmt_content.api.php, line 19
Hooks provided by the content entity source module.

Code

function hook_tmgmt_content_list_query_alter(\Drupal\Core\Entity\Query\QueryInterface $query) {
  $query
    ->condition('type', array(
    'article',
    'page',
  ), 'IN');
}