You are here

public function BreakpointGroup::duplicate in Breakpoints 8

Duplicate a breakpoint group.

The new breakpoint group inherits the breakpoints.

Return value

Drupal\breakpoint\BreakpointGroup

File

lib/Drupal/breakpoint/BreakpointGroup.php, line 191
Definition of Drupal\breakpoint\BreakpointGroup.

Class

BreakpointGroup
Defines the BreakpointGroup entity.

Namespace

Drupal\breakpoint

Code

public function duplicate() {
  return entity_create('breakpoint_group', array(
    'breakpoints' => $this->breakpoints,
  ));
}