bundle/Action/ActionRegistry.php
protected function prepareConfig($contentTypeIdentifier)
    {
        if (!empty($this->config[ConfigurationConstants::CONTENT_TYPES][$contentTypeIdentifier])) {
            return $this->config[ConfigurationConstants::CONTENT_TYPES][$contentTypeIdentifier];
        }

        if (!empty($this->config['default'])) {
            return  $this->config['default'];
        }

        return array();
    }
protected function prepareConfig($contentTypeIdentifier)
    {
        if (!empty($this->config[ConfigurationConstants::CONTENT_TYPES][$contentTypeIdentifier])) {
            return $this->config[ConfigurationConstants::CONTENT_TYPES][$contentTypeIdentifier];
        }

        if (!empty($this->config['default'])) {
            return  $this->config['default'];
        }

        return array();
    }
protected function prepareConfig ( $ contentTypeIdentifier ) { if ( ! empty ( $ this -> config [ ConfigurationConstants :: CONTENT_TYPES ] [ $ contentTypeIdentifier ] ) ) { return $ this -> config [ ConfigurationConstants :: CONTENT_TYPES ] [ $ contentTypeIdentifier ] ; } if ( ! empty ( $ this -> config [ 'default' ] ) ) { return $ this -> config [ 'default' ] ; } return array ( ) ; }
Returns configuration for given content type identifier if exists
or default one.

@param string $contentTypeIdentifier

@return array
Returns configuration for given content type identifier if exists or default one .