3 namespace Drupal\system\Entity;
5 use Drupal\Core\Config\Entity\ConfigEntityBase;
6 use Drupal\system\MenuInterface;
9 * Defines the Menu configuration entity class.
13 * label = @Translation("Menu"),
15 * "access" = "Drupal\system\MenuAccessControlHandler"
17 * admin_permission = "administer menu",
30 class Menu extends ConfigEntityBase implements MenuInterface {
33 * The menu machine name.
40 * The human-readable name of the menu entity.
47 * The menu description.
51 protected $description;
54 * The locked status of this menu.
58 protected $locked = FALSE;
63 public function getDescription() {
64 return $this->description;
70 public function isLocked() {
71 return (bool) $this->locked;