Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sharique’s picture

Status: Active » Needs review
Issue tags: -SprintWeekend2013, -#drupalpune-sprint
FileSize
1.92 KB

I've ported the block/ctool content type to new block system.
@todo Add configuration setting to block.

Status: Needs review » Needs work

The last submitted patch, 1: convert_block_system_to-2355003-1.patch, failed testing.

Sharique’s picture

Status: Needs work » Needs review

triggering test again.

Sharique’s picture

Updated blockAccess method code to fix error.

Status: Needs review » Needs work

The last submitted patch, 4: convert_block_system_to-2355003-4.patch, failed testing.

Sharique’s picture

Status: Needs work » Needs review
FileSize
2.5 KB

Blocks build function must always return array.
Disabling test we don't have valid tests.

Sharique’s picture

Added missing return in blockAccess.

malcomio’s picture

+++ b/src/Plugin/Block/SocialStatsBlock.php
@@ -22,20 +24,46 @@ class SocialStatsBlock extends BlockBase {
+          '#markup' => $total . ' Shares',

the block markup should go through t()

also it would be good to use pluralization - not sure how it works in Drupal 8, but I think this is the relevant info: https://www.drupal.org/node/2173787

Sharique’s picture

Thanks Malcolm, here is updated patch.

Status: Needs review » Needs work

The last submitted patch, 9: convert_block_system_to-2355003-9.patch, failed testing.

Sharique’s picture

Status: Needs work » Needs review

Forgot to un-select tests.

  • Sharique committed d8ee577 on 8.x-1.x
    Issue #2355003 by Sharique: Convert block system to new plugins
    
Sharique’s picture

Status: Needs review » Closed (fixed)
Parent issue: » #2107321: [meta] Drupal 8 port of Social Stats
Sharique’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

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