1 admin_bar.test protected AdminBarCustomizedTestCase::queryMlidByPath($path)

Returns the menu link ID for a given link path in the management menu.

File

core/modules/admin_bar/tests/admin_bar.test, line 521
Tests for the Administration bar module.

Class

AdminBarCustomizedTestCase
Tests customized menu links.

Code

protected function queryMlidByPath($path) {
  return db_query('SELECT mlid FROM {menu_links} WHERE menu_name = :menu AND link_path = :path', array(
    ':menu' => 'management',
    ':path' => $path,
  ))->fetchField();
}