Same name in other branches
- 2.x src/EntityClone/Config/MenuEntityClone.php \Drupal\entity_clone\EntityClone\Config\MenuEntityClone::cloneEntity()
Overrides ConfigEntityCloneBase::cloneEntity
File
-
src/
EntityClone/ Config/ MenuEntityClone.php, line 15
Class
- MenuEntityClone
- Class Menu Entity Clone.
Namespace
Drupal\entity_clone\EntityClone\ConfigCode
public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, array $properties = []) {
/** @var \Drupal\system\Entity\Menu */
$cloned_entity->set('locked', FALSE);
return parent::cloneEntity($entity, $cloned_entity, $properties);
}