Controller/AdminNodeController.php 1 location
|
@@ 74-78 (lines=5) @@
|
| 71 |
|
$cmsContentType = $this->container->getParameter('cms.content_types'); |
| 72 |
|
|
| 73 |
|
foreach ($cmsContentType as $key => $value) { |
| 74 |
|
if ($this->checkRolesCMS($value)) { |
| 75 |
|
if ($instanceAdmin = $this->admin->getConfigurationPool()->getAdminByClass($value['class'])) { |
| 76 |
|
$cmsContentType[$key]['admin'] = $instanceAdmin; |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
// set the theme for the current Admin Form |
Controller/AdminBlockController.php 1 location
|
@@ 93-98 (lines=6) @@
|
| 90 |
|
protected function getInstancesAdmin() |
| 91 |
|
{ |
| 92 |
|
foreach ($this->getCMSParameter() as $key => $value) { |
| 93 |
|
if ($this->checkRolesCMS($value)) { |
| 94 |
|
$instanceAdmin = $this->admin->getConfigurationPool()->getAdminByClass($value['class']); |
| 95 |
|
if ($instanceAdmin !== null) { |
| 96 |
|
$this->_cmsContentParameter[$key]['admin'] = $instanceAdmin; |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
|