drush fn-viewfor drush 6x

Show the source of specified function or method.

drush fn-view

fn-view is a Drush command from the devel project.

  • Aliases

    fn-view has 1 alias/es:

    drush fnv

  • Arguments

    fn-view accepts 1 argument/s:

    function : The name of the function or method to view.

  • Options

    fn-view accepts 2 option/s:

    --pipe : Output just the filename of the function

    --format : Specify how the filename should be printed. Available placeholders are !startline, !endline and !file

  • Examples

    View the source code for function "drupal_set_breadcrumb"

    fn-view drupal_set_breadcrumb

    Edit the file that contains the function "user_access"

    vi `drush --pipe fn-view user_access --format='+!startline !file'`

    View the source code for method load in the class NodeController

    fn-view NodeController::load

  • Comments

    comments powered by Disqus