public function Breakpoint::duplicate in Breakpoints 8
Duplicate a breakpoint.
The new breakpoint inherits the media query.
Return value
File
- lib/
Drupal/ breakpoint/ Breakpoint.php, line 211 - Definition of Drupal\breakpoint\Breakpoint.
Class
- Breakpoint
- Defines the Breakpoint entity.
Namespace
Drupal\breakpointCode
public function duplicate() {
return entity_create('breakpoint', array(
'mediaQuery' => $this->mediaQuery,
));
}