You are here

public function BrowserGroupItem::__construct in Paragraphs Browser 8

File

src/BrowserGroupItem.php, line 21

Class

BrowserGroupItem

Namespace

Drupal\paragraphs_browser

Code

public function __construct($machine_name, $label, $weight = 0) {
  $this
    ->setId($machine_name);
  $this
    ->setLabel($label);
  $this
    ->setWeight($weight);
}