protected function getMenuMethods($plugin)
    {
        //Gets all methods from `$PLUGIN\View\Helper\MenuHelper`
        $methods = get_child_methods(sprintf('\%s\View\Helper\MenuHelper', $plugin));

        //Filters invalid name methods and returns
        return $methods ? array_values(preg_grep('/^(?!_).+$/', $methods)) : [];
    }
protected function getMenuMethods($plugin)
    {
        //Gets all methods from `$PLUGIN\View\Helper\MenuHelper`
        $methods = get_child_methods(sprintf('\%s\View\Helper\MenuHelper', $plugin));

        //Filters invalid name methods and returns
        return $methods ? array_values(preg_grep('/^(?!_).+$/', $methods)) : [];
    }
protected function getMenuMethods ( $ plugin ) { //Gets all methods from `$PLUGIN\View\Helper\MenuHelper` $ methods = get_child_methods ( sprintf ( '\%s\View\Helper\MenuHelper' , $ plugin ) ) ; //Filters invalid name methods and returns return $ methods ? array_values ( preg_grep ( '/^(?!_).+$/' , $ methods ) ) : [ ] ; }
Internal method to get all menu methods names from a plugin
@param string $plugin Plugin name
@return array
Internal method to get all menu methods names from a plugin