studio-ui composer is ready to test actively
This commit is contained in:
@@ -110,7 +110,7 @@ class CompositionController extends ControllerBase {
|
||||
'#options'=>array(
|
||||
'attributes' => array(
|
||||
'data-drupal-link-system-path' => $url->getInternalPath(),
|
||||
'nid' => $this->compo->id(),
|
||||
'cid' => $this->compo->id(),
|
||||
'class' => ['composition-link'],
|
||||
'title'=>$title,
|
||||
),
|
||||
@@ -173,8 +173,10 @@ class CompositionController extends ControllerBase {
|
||||
$this->compo->setName($name);
|
||||
}
|
||||
$documents = array();
|
||||
foreach ($new_documents as $nid) {
|
||||
$documents[] = ['target_id'=>$nid];
|
||||
if(count($new_documents)){
|
||||
foreach ($new_documents as $nid) {
|
||||
$documents[] = ['target_id'=>$nid];
|
||||
}
|
||||
}
|
||||
$this->compo->set('documents', $documents);
|
||||
$this->compo->save();
|
||||
|
||||
@@ -119,7 +119,9 @@ class StudioUIController extends ControllerBase {
|
||||
'#composer_actions' => array(
|
||||
'play_composition'=>array(
|
||||
"#type"=>'container',
|
||||
"#markup"=>t('Play my composition'),
|
||||
"#attributes"=>array(
|
||||
"class"=>array("compo-player-controls")
|
||||
)
|
||||
),// TODO: add social media links (what about composition visibility uotside studio_ui ?)
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user