Commit d2004360 authored by alexpott's avatar alexpott

Issue #2083615 followup by Gábor Hojtsy: Use links annotation for config...

Issue #2083615 followup by Gábor Hojtsy: Use links annotation for config entity URI like for content entities.
parent 9c15199f
......@@ -37,6 +37,9 @@
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "edit-form" = "admin/structure/block/manage/{block}"
* }
* )
*/
......@@ -114,18 +117,6 @@ public function getPlugin() {
return $this->pluginBag->get($this->plugin);
}
/**
* Overrides \Drupal\Core\Entity\Entity::uri();
*/
public function uri() {
return array(
'path' => 'admin/structure/block/manage/' . $this->id(),
'options' => array(
'entity_type' => $this->entityType,
'entity' => $this,
),
);
}
/**
* Overrides \Drupal\Core\Entity\Entity::label();
*/
......
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