Same filename in other branches
Namespace
Drupal\entity_clone\EntityClone\ConfigFile
-
src/
EntityClone/ Config/ MenuEntityClone.php
View source
<?php
namespace Drupal\entity_clone\EntityClone\Config;
use Drupal\Core\Entity\EntityInterface;
/**
* Class Menu Entity Clone.
*/
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);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MenuEntityClone | Class Menu Entity Clone. |