y_lb_article-1.0.14/src/EventSubscriber/WSStyleGroupAlter.php
src/EventSubscriber/WSStyleGroupAlter.php
<?php
namespace Drupal\y_lb_article\EventSubscriber;
use Drupal\y_lb\WSStyleGroupAlterAbstract;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* An event subscriber to alter available WS Style groups for a component.
*/
class WSStyleGroupAlter extends WSStyleGroupAlterAbstract implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
protected function getAllowedStyleGroups() {
return [
'inline_block:articles_listing' => [
'border_style_component',
'text_alignment_component',
'button_fill_component',
],
];
}
}
