Issue #2083615 followup by Gábor Hojtsy: Use links annotation for config entity URI like for content entities.

8.0.x
Alex Pott 2013-09-21 18:27:34 +02:00
parent 9c15199f33
commit d200436055
1 changed files with 3 additions and 12 deletions

View File

@ -37,6 +37,9 @@ use Drupal\Core\Entity\EntityStorageControllerInterface;
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "edit-form" = "admin/structure/block/manage/{block}"
* }
* )
*/
@ -114,18 +117,6 @@ class Block extends ConfigEntityBase implements BlockInterface {
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();
*/