class MenuEntityClone in Entity Clone 8
Class MenuEntityClone.
Hierarchy
- class \Drupal\entity_clone\EntityClone\Config\ConfigEntityCloneBase implements EntityHandlerInterface, EntityCloneInterface
- class \Drupal\entity_clone\EntityClone\Config\MenuEntityClone
Expanded class hierarchy of MenuEntityClone
1 file declares its use of MenuEntityClone
- entity_clone.module in ./
entity_clone.module - Contains entity_clone.module.
File
- src/
EntityClone/ Config/ MenuEntityClone.php, line 10
Namespace
Drupal\entity_clone\EntityClone\ConfigView source
class MenuEntityClone extends ConfigEntityCloneBase {
/**
* {@inheritDoc}
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigEntityCloneBase:: |
protected | property | The entity type ID. | |
ConfigEntityCloneBase:: |
protected | property | The entity type manager. | |
ConfigEntityCloneBase:: |
public static | function |
Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface:: |
1 |
ConfigEntityCloneBase:: |
public | function | Constructs a new ConfigEntityCloneBase. | 1 |
MenuEntityClone:: |
public | function |
Clone an entity. Overrides ConfigEntityCloneBase:: |