public function LayoutParagraphsAllowedTypesEvent::__construct in Layout Paragraphs 2.0.x
Class cosntructor.
Parameters
array $types: An array of paragraph types.
\Drupal\layout_paragraphs\LayoutParagraphsLayout $layout: The layout object.
string $parent_uuid: The parent uuid.
string $region: The region.
File
- src/
Event/ LayoutParagraphsAllowedTypesEvent.php, line 55
Class
- LayoutParagraphsAllowedTypesEvent
- Class definition for Layout Paragraphs Allowed Types event.
Namespace
Drupal\layout_paragraphs\EventCode
public function __construct(array $types, LayoutParagraphsLayout $layout, $parent_uuid = '', $region = '') {
$this->types = $types;
$this->layout = $layout;
$this->parentUuid = $parent_uuid;
$this->region = $region;
}