fix studio
This commit is contained in:
@@ -117,9 +117,26 @@ class CompositionController extends ControllerBase {
|
||||
),
|
||||
);
|
||||
|
||||
$delete_url = Url::fromRoute('edlp_studio.composition_controller_action_ajax', ['action' => 'delete', 'cid' => $this->compo->id()], ['absolute' => TRUE]);
|
||||
|
||||
$deletelink_build = array(
|
||||
'#title' => t('Delete'),
|
||||
'#type' => 'link',
|
||||
'#url' => $delete_url,
|
||||
'#options'=>array(
|
||||
'attributes' => array(
|
||||
'data-drupal-link-system-path' => $delete_url->getInternalPath(),
|
||||
'cid' => $this->compo->id(),
|
||||
'class' => ['delete-composition-link'],
|
||||
'title'=>t('Delete @title', array('@title'=>$title)),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
$data += array(
|
||||
'new_name' => $title,
|
||||
'new_link' => render($new_link_build),
|
||||
'delete_link' => render($deletelink_build),
|
||||
);
|
||||
break;
|
||||
case 'open':
|
||||
|
||||
Reference in New Issue
Block a user