Commit 3724e192 authored by webchick's avatar webchick
Browse files

Issue #2312367 by lokeoke, dawehner: Add a getUuid() method for content menu...

Issue #2312367 by lokeoke, dawehner: Add a getUuid() method for content menu links, to not have to use getDerivativeId().
parent cb24b1e3
......@@ -133,7 +133,7 @@ protected function getEntity() {
}
if (!$entity) {
// Fallback to the loading by the UUID.
$uuid = $this->getDerivativeId();
$uuid = $this->getUuid();
$loaded_entities = $storage->loadByProperties(array('uuid' => $uuid));
$entity = reset($loaded_entities);
}
......@@ -207,6 +207,16 @@ public function getTranslateRoute() {
);
}
/**
* Returns the unique ID representing the menu link.
*
* @return string
* The menu link ID.
*/
protected function getUuid() {
$this->getDerivativeId();
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment