original_string: public function blueprints()
      {
          $grav = Grav::instance();
  
          /** @var Pages $pages */
          $pages = $grav['pages'];
  
          $blueprint = $pages->blueprints($this->blueprintName());
          $fields = $blueprint->fields();
          $edit_mode = isset($grav['admin']) ? $grav['config']->get('plugins.admin.edit_mode') : null;
  
          // override if you only want 'normal' mode
          if (empty($fields) && ($edit_mode === 'auto' || $edit_mode === 'normal')) {
              $blueprint = $pages->blueprints('default');
          }
  
          // override if you only want 'expert' mode
          if (!empty($fields) && $edit_mode === 'expert') {
              $blueprint = $pages->blueprints('');
          }
  
          return $blueprint;
      }
code: public function blueprints()
      {
          $grav = Grav::instance();
  
          /** @var Pages $pages */
          $pages = $grav['pages'];
  
          $blueprint = $pages->blueprints($this->blueprintName());
          $fields = $blueprint->fields();
          $edit_mode = isset($grav['admin']) ? $grav['config']->get('plugins.admin.edit_mode') : null;
  
          // override if you only want 'normal' mode
          if (empty($fields) && ($edit_mode === 'auto' || $edit_mode === 'normal')) {
              $blueprint = $pages->blueprints('default');
          }
  
          // override if you only want 'expert' mode
          if (!empty($fields) && $edit_mode === 'expert') {
              $blueprint = $pages->blueprints('');
          }
  
          return $blueprint;
      }
code_tokens: public function blueprints ( ) { $ grav = Grav :: instance ( ) ; /** @var Pages $pages */ $ pages = $ grav [ 'pages' ] ; $ blueprint = $ pages -> blueprints ( $ this -> blueprintName ( ) ) ; $ fields = $ blueprint -> fields ( ) ; $ edit_mode = isset ( $ grav [ 'admin' ] ) ? $ grav [ 'config' ] -> get ( 'plugins.admin.edit_mode' ) : null ; // override if you only want 'normal' mode if ( empty ( $ fields ) && ( $ edit_mode === 'auto' || $ edit_mode === 'normal' ) ) { $ blueprint = $ pages -> blueprints ( 'default' ) ; } // override if you only want 'expert' mode if ( ! empty ( $ fields ) && $ edit_mode === 'expert' ) { $ blueprint = $ pages -> blueprints ( '' ) ; } return $ blueprint ; }
docstring: Get blueprints for the page.
  
  @return Blueprint
docstring_tokens: Get blueprints for the page .