Neos\Flow\Configuration\ConfigurationManager::getAvailableConfigurationTypes PHP Method

getAvailableConfigurationTypes() public method

Get the available configuration-types
public getAvailableConfigurationTypes ( ) : array
return array
    public function getAvailableConfigurationTypes()
    {
        return array_keys($this->configurationTypes);
    }

Usage Example

 /**
  * @param string $type
  * @return void
  */
 public function indexAction($type = 'Settings')
 {
     $availableConfigurationTypes = $this->configurationManager->getAvailableConfigurationTypes();
     $this->view->assignMultiple(array('type' => $type, 'availableConfigurationTypes' => $availableConfigurationTypes));
     if (in_array($type, $availableConfigurationTypes)) {
         $this->view->assign('configuration', $this->configurationManager->getConfiguration($type));
         try {
             $this->view->assign('validationResult', $this->configurationSchemaValidator->validate($type));
         } catch (SchemaValidationException $exception) {
             $this->addFlashMessage(htmlspecialchars($exception->getMessage()), 'An error occurred during validation of the configuration.', Message::SEVERITY_ERROR, array(), 1412373972);
         }
     } else {
         $this->addFlashMessage('Configuration type not found.', '', Message::SEVERITY_ERROR, array(), 1412373998);
     }
 }
All Usage Examples Of Neos\Flow\Configuration\ConfigurationManager::getAvailableConfigurationTypes