Rest block data modules intended to accomplish maximum Drupal’s potential in the fully decoupled applications.

It helps developers to design the decoupled applications layout from the Drupal’s block layout and expose layout structure along with block data through REST resources.

Project link

https://www.drupal.org/project/rest_block_data

Git instructions

git clone --branch '1.0.x' https://git.drupalcode.org/project/rest_block_data.git

Comments

gkaruppusamy created an issue. See original summary.

avpaderno’s picture

Title: [D8], [D9] Rest block data » [D9] REST Block Data for Decoupled Drupal
Issue summary: View changes
geoanders’s picture

Ran a quick standards scan. See results below:

FILE: /rest_block_data/rest_block_data.info.yml
-----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------
  7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
  8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
  9 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
 10 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-----------------------------------------------------------------------------------------------

FILE: /rest_block_data/README.txt
-----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
-----------------------------------------------------------------------
 15 | WARNING | Line exceeds 80 characters; contains 110 characters
 17 | WARNING | Line exceeds 80 characters; contains 168 characters
 48 | WARNING | Line exceeds 80 characters; contains 121 characters
 49 | WARNING | Line exceeds 80 characters; contains 123 characters
 52 | WARNING | Line exceeds 80 characters; contains 139 characters
-----------------------------------------------------------------------


FILE: /rest_block_data/rest_block_data.module
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 28 ERRORS AND 1 WARNING AFFECTING 27 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] Missing file doc comment
  4 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for
    |         |     xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
  5 | ERROR   | [x] Whitespace found at end of line
  7 | ERROR   | [x] Doc comment long description must end with a full stop
 10 | ERROR   | [x] Opening brace should be on the same line as the declaration
 11 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 12 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 13 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 14 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 15 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 16 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 17 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 18 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 19 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 20 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 21 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
 24 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 25 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 26 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 12
 26 | ERROR   | [x] Inline control structures are not allowed
 28 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 29 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 35 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced with use statements
 36 | ERROR   | [x] Opening brace should be on the same line as the declaration
 37 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 38 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 39 | ERROR   | [x] Case breaking statement indented incorrectly; expected 10 spaces, found 12
 39 | ERROR   | [x] Concat operator must be surrounded by a single space
 40 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 28 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
avpaderno’s picture

Status: Needs review » Needs work
gkaruppusamy’s picture

Status: Needs work » Needs review

Hi @geoanders, @apaderno

Thank you for your review.

Code has been updated and pushed to repo with suggested changes.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

gkaruppusamy’s picture

Thank you for your review and valuable support.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.