|
@@ 76-78 (lines=3) @@
|
| 73 |
|
{ |
| 74 |
|
$accessor = PropertyAccess::createPropertyAccessor(); |
| 75 |
|
|
| 76 |
|
if (key_exists('edit', $this->options['actions'])) { |
| 77 |
|
$this->options['actions']['edit']['parameters']['id'] = $accessor->getValue($this->entity, 'id'); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
if (key_exists('delete', $this->options['actions'])) { |
| 81 |
|
$this->options['actions']['delete']['parameters']['id'] = $accessor->getValue($this->entity, 'id'); |
|
@@ 80-82 (lines=3) @@
|
| 77 |
|
$this->options['actions']['edit']['parameters']['id'] = $accessor->getValue($this->entity, 'id'); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
if (key_exists('delete', $this->options['actions'])) { |
| 81 |
|
$this->options['actions']['delete']['parameters']['id'] = $accessor->getValue($this->entity, 'id'); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
return $this->twig->render($this->options['template'], [ |
| 85 |
|
'actions' => $this->options['actions'], |