- Front-End:
- create template using this contents: {P5}
 
 - Admin Console:
- go to Configuration → Website → Themes section
 - press Rescan Themes button
 
 - Front-End:
- open created template in web browser by going to http://www.website.tld/path/to/template.html url
 - confirm, that detailed information about top level menu entries is displayed
 - remember available key names for each displayed menu item
 
 - PhpStorm:
- create /modules/custom/units/sections/helpers/e_menu_helper.php file
 - in that file create EMenuHelper class, that would extend MenuHelper class
 - override class constructor and before calling parent class constructor add following entries to $this->itemParams array:
- key: extra1; value: array('Filename')
 - key: extra2; value: array('Status', null)
 - key: extra3; value: array('CreatedOn', 'Y-m-d')
 - key: extra4; value: array('CreatedOn')
 
 - open /modules/custom/units/sections/sections_config.php file
 - add array('pseudo' => 'MenuHelper', 'class' => 'EMenuHelper'), line to the array in $config['RegisterClasses'] key
 
 - in CLI:
- run the in-portal classmap:rebuild command
 
 - Admin Console:
- go to Tools → System Tools section
 - click on Reset button in the Config Files sub-section
 
 - Front-End:
- reload page
 - confirm, that following additional keys are now present in data displayed for each menu item: extra1, extra2, extra3, extra4
 - confirm, that value in extra1 keys represent value of Filename field as-is (no formatter applied)
 - confirm, that value in extra2 keys represent value of Status field with formatter applied
 - confirm, that value in extra3 keys represent value of CreatedOn field with formatter applied (custom date format)
 - confirm, that value in extra4 keys represent value of CreatedOn field as-is (no formatter applied)
 
 
Details
Details
Diff Detail
Diff Detail
- Repository
 - rINP In-Portal
 - Branch
 - branches/5.3.x
 - Lint
 Lint Errors Excuse: Won't fix indentation issues as part of this diff, because it will create too much non-related code changes. Severity Location Code Message Error core/units/helpers/menu_helper.php:40 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:50 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:57 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:61 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:67 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:68 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:282 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:284 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:286 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:289 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:294 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:295 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:297 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:298 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:413 PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeyword CodingStandard.Array.Array.SpaceAfterKeyword Error core/units/helpers/menu_helper.php:413 PHPCS.E.Generic.PHP.LowerCaseKeyword.Found Generic.PHP.LowerCaseKeyword.Found Error core/units/helpers/menu_helper.php:416 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:418 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:469 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:476 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:478 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:479 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:481 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Error core/units/helpers/menu_helper.php:482 PHPCS.E.Generic.WhiteSpace.ScopeIndent.IncorrectExact Generic.WhiteSpace.ScopeIndent.IncorrectExact Warning core/units/helpers/menu_helper.php:431 PHPCS.W.Generic.Files.LineLength.TooLong Generic.Files.LineLength.TooLong - Unit
 No Unit Test Coverage - Build Status
 Buildable 449 Build 449: arc lint + arc unit 
Event Timeline
Comment Actions
The changes to all but menu_helper.php file needs to be removed, because it's a debug code.