Controller/AdminNodeController.php 1 location
|
@@ 68-72 (lines=5) @@
|
| 65 |
|
$cmsContentType = $this->container->getParameter('alpixel_cms.content_types'); |
| 66 |
|
|
| 67 |
|
foreach ($cmsContentType as $key => $value) { |
| 68 |
|
if ($this->checkRolesCMS($value)) { |
| 69 |
|
if ($instanceAdmin = $this->admin->getConfigurationPool()->getAdminByClass($value['class'])) { |
| 70 |
|
$cmsContentType[$key]['admin'] = $instanceAdmin; |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
// set the theme for the current Admin Form |
Controller/AdminBlockController.php 1 location
|
@@ 58-63 (lines=6) @@
|
| 55 |
|
protected function getInstancesAdmin() |
| 56 |
|
{ |
| 57 |
|
foreach ($this->getCMSParameter() as $key => $value) { |
| 58 |
|
if ($this->checkRolesCMS($value)) { |
| 59 |
|
$instanceAdmin = $this->admin->getConfigurationPool()->getAdminByClass($value['class']); |
| 60 |
|
if ($instanceAdmin !== null) { |
| 61 |
|
$this->_cmsContentParameter[$key]['admin'] = $instanceAdmin; |
| 62 |
|
} |
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|