public BlockInterface::createDuplicateBlock($new_id = NULL, $new_theme = NULL)
Creates a duplicate of the block entity.
Parameters
string $new_id: (optional) The new ID on the duplicate block.
string $new_theme: (optional) The theme on the duplicate block.
Return value
static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system.
File
- core/modules/block/src/BlockInterface.php, line 133
Class
- BlockInterface
- Provides an interface defining a block entity.
Namespace
Drupal\block
Code
public function createDuplicateBlock($new_id = NULL, $new_theme = NULL);
Please login to continue.