You are here

public static function LayoutParagraphsAllowedTypesSubscriber::getSubscribedEvents in Layout Paragraphs 2.0.x

File

src/EventSubscriber/LayoutParagraphsAllowedTypesSubscriber.php, line 10

Class

LayoutParagraphsAllowedTypesSubscriber

Namespace

Drupal\layout_paragraphs\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    LayoutParagraphsAllowedTypesEvent::EVENT_NAME => 'typeRestrictions',
  ];
}