You are here

public function Breakpoint::duplicate in Breakpoints 8

Duplicate a breakpoint.

The new breakpoint inherits the media query.

Return value

Drupal\breakpoint\Breakpoint

File

lib/Drupal/breakpoint/Breakpoint.php, line 211
Definition of Drupal\breakpoint\Breakpoint.

Class

Breakpoint
Defines the Breakpoint entity.

Namespace

Drupal\breakpoint

Code

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