You are here

public function LayoutParagraphsAllowedTypesEvent::setTypes in Layout Paragraphs 2.0.x

Sets the types array.

Parameters

array $types: The types array.

Return value

$this

File

src/Event/LayoutParagraphsAllowedTypesEvent.php, line 80

Class

LayoutParagraphsAllowedTypesEvent
Class definition for Layout Paragraphs Allowed Types event.

Namespace

Drupal\layout_paragraphs\Event

Code

public function setTypes(array $types) {
  $this->types = $types;
  return $this;
}