Support from Acquia helps fund testing for Drupal Acquia logo

Comments

njagojevic created an issue. See original summary.

njagojevic’s picture

Assigned: Unassigned » njagojevic

Working on it.

njagojevic’s picture

njagojevic’s picture

Added button group paragraph type. First should be #2875253: Buttons paragraph type commited.

Button group with same style applied on each button:
button group

Button group with different styles applied on buttons:
different button group

CTaPByK’s picture

Status: Needs review » Needs work

I can't apply this patch, i got error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "accordion" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

  1. +++ b/config/install/paragraphs.paragraphs_type.pcb_button.yml
    @@ -0,0 +1,29 @@
    +  accordion:
    +    paragraph_accordion_field: ''
    

    I guess you have some demo installed.

  2. +++ b/paragraphs_collection_bootstrap.module
    @@ -0,0 +1,96 @@
    +    $behaviorSettings = $variables['paragraph']->getAllBehaviorSettings();
    ...
    +    if (isset($behaviorSettings['style'])) {
    +      switch ($behaviorSettings['style']['style']) {
    

    Be consistent; do not mix camelCase and snake_case variable naming inside a file.
    https://www.drupal.org/docs/develop/standards/coding-standards#naming
    Please check Code Sniffer setting inside your IDE.

njagojevic’s picture

Status: Needs work » Needs review
FileSize
2.93 KB
22.33 KB

Removed nonexistent plugins from config files and fixed coding standards.

njagojevic’s picture

thenchev’s picture

  • njagojevic authored a5682e6 on 8.x-1.x
    Issue #2880636 by njagojevic, Denchev, CTaPByK: Button group paragraph...
thenchev’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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