Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Compact.php

class Compact

Compact formatter.

@author Marco Marchiò <marco.mm89@gmail.com>

Hierarchy

  • class \Peast\Formatter\Base
    • class \Peast\Formatter\Compact extends \Peast\Formatter\Base

Expanded class hierarchy of Compact

1 file declares its use of Compact
JsOptimizer.php in core/lib/Drupal/Core/Asset/JsOptimizer.php
13 string references to 'Compact'
BaseCommand::renderTable in vendor/composer/composer/src/Composer/Command/BaseCommand.php
core.entity_view_display.user.user.compact.yml in core/profiles/standard/config/install/core.entity_view_display.user.user.compact.yml
core/profiles/standard/config/install/core.entity_view_display.user.user.compact.yml
core.entity_view_display.user.user.compact.yml in core/profiles/demo_umami/config/install/core.entity_view_display.user.user.compact.yml
core/profiles/demo_umami/config/install/core.entity_view_display.user.user.compact.yml
core.entity_view_display.user.user.compact.yml in core/recipes/user_picture/config/core.entity_view_display.user.user.compact.yml
core/recipes/user_picture/config/core.entity_view_display.user.user.compact.yml
core.entity_view_mode.user.compact.yml in core/modules/user/config/install/core.entity_view_mode.user.compact.yml
core/modules/user/config/install/core.entity_view_mode.user.compact.yml

... See full list

File

vendor/mck89/peast/lib/Peast/Formatter/Compact.php, line 17

Namespace

Peast\Formatter
View source
class Compact extends Base {
    
    /**
     * New line character
     * 
     * @var string
     */
    protected $newLine = "";
    
    /**
     * Indentation character
     * 
     * @var string
     */
    protected $indentation = "";
    
    /**
     * Boolean that indicates if operators must be surrounded by spaces
     * 
     * @var bool
     */
    protected $spacesAroundOperators = false;
    
    /**
     * Boolean that indicates if blocks of code must be wrapped in curly
     * brackets also if they contain only one instruction
     * 
     * @var bool
     */
    protected $alwaysWrapBlocks = false;
    
    /**
     * Boolean that indicates if comments must be rendered
     * 
     * @var bool
     */
    protected $renderComments = false;

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
Base::$newLineBeforeCurlyBracket protected property Boolean that indicates if open curly brackets in code blocks must be
on a new line
1
Base::$recalcCommentsIndent protected property Boolean that indicates if multiline documentation comments
(for example JSDoc syntax) must be manipulated to match the
right indentation
Base::$spacesInsideRoundBrackets protected property Boolean that indicates if content inside round brackets must be
surrounded by spaces
1
Base::getAlwaysWrapBlocks public function Returns a boolean that indicates if blocks of code must be wrapped in
curly brackets also if they contain only one instruction
Base::getIndentation public function Returns the indentation character
Base::getNewLine public function Returns the new line character
Base::getNewLineBeforeCurlyBracket public function Returns a boolean that indicates if open curly brackets in code blocks
must be on a new line
Base::getRecalcCommentsIndent public function Returns a boolean that indicates if multiline documentation comments
(for example JSDoc syntax) must be manipulated to match the
right indentation
Base::getRenderComments public function Returns a boolean that indicates if comments must be rendered
Base::getSpacesAroundOperator public function Returns a boolean that indicates if operators must be surrounded by
spaces
Base::getSpacesInsideRoundBrackets public function Returns a boolean that indicates if content inside round brackets must be
surrounded by spaces
Base::__construct public function Class constructor
Compact::$alwaysWrapBlocks protected property Boolean that indicates if blocks of code must be wrapped in curly
brackets also if they contain only one instruction
Overrides Base::$alwaysWrapBlocks
Compact::$indentation protected property Indentation character Overrides Base::$indentation
Compact::$newLine protected property New line character Overrides Base::$newLine
Compact::$renderComments protected property Boolean that indicates if comments must be rendered Overrides Base::$renderComments
Compact::$spacesAroundOperators protected property Boolean that indicates if operators must be surrounded by spaces Overrides Base::$spacesAroundOperators

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal