menu_local_tabs()
Returns a renderable element for the primary and secondary tabs.
function menu_local_tabs() { $build = array( '#theme' => 'menu_local_tasks', '#primary' => menu_primary_local_tasks(), '#secondary' => menu_secondary_local_tasks(), ); return !empty($build['#primary']) || !empty($build['#secondary']) ? $build : array(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!menu.inc/function/menu_local_tabs/8.1.x