PHP 클래스 Neos\Neos\Controller\Service\ContentDimensionsController

상속: extends Neos\Flow\Mvc\Controller\ActionController, use trait Neos\Neos\Controller\BackendUserTranslationTrait
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$contentDimensionPresetSource Neos\Neos\Domain\Service\ContentDimensionPresetSourceInterface
$supportedMediaTypes array
$viewFormatToObjectNameMap array

공개 메소드들

메소드 설명
indexAction ( ) : void Returns the full content dimensions presets as JSON object; see ContentDimensionPresetSourceInterface::getAllPresets() for a format description.
showAction ( string $dimensionName, array $chosenDimensionPresets = [] ) : void Returns only presets of the dimension specified by $dimensionName. But even though only one dimension is returned, the output follows the structure as described in ContentDimensionPresetSourceInterface::getAllPresets().

메소드 상세

indexAction() 공개 메소드

Returns the full content dimensions presets as JSON object; see ContentDimensionPresetSourceInterface::getAllPresets() for a format description.
public indexAction ( ) : void
리턴 void

showAction() 공개 메소드

It is possible to pass a selection of presets as a filter. In that case, $chosenDimensionPresets must be an array of one or more dimension names (key) and preset names (value). The returned list will then only contain dimension presets which are allowed in combination with the given presets. Example: Given that $chosenDimensionPresets = array('country' => 'US') and that a second dimension "language" exists and $dimensionName is "language. This method will now display a list of dimension presets for the dimension "language" which are allowed in combination with the country "US".
public showAction ( string $dimensionName, array $chosenDimensionPresets = [] ) : void
$dimensionName string Name of the dimension to return presets for
$chosenDimensionPresets array An optional array of dimension names and a single preset per dimension
리턴 void

프로퍼티 상세

$contentDimensionPresetSource 보호되어 있는 프로퍼티

protected ContentDimensionPresetSourceInterface,Neos\Neos\Domain\Service $contentDimensionPresetSource
리턴 Neos\Neos\Domain\Service\ContentDimensionPresetSourceInterface

$supportedMediaTypes 보호되어 있는 프로퍼티

protected array $supportedMediaTypes
리턴 array

$viewFormatToObjectNameMap 보호되어 있는 프로퍼티

protected array $viewFormatToObjectNameMap
리턴 array