Neos\Neos\Controller\Service\ContentDimensionsController::indexAction PHP Method

indexAction() public method

Returns the full content dimensions presets as JSON object; see ContentDimensionPresetSourceInterface::getAllPresets() for a format description.
public indexAction ( ) : void
return void
    public function indexAction()
    {
        if ($this->view instanceof JsonView) {
            $this->view->assign('value', $this->contentDimensionPresetSource->getAllPresets());
        } else {
            $this->view->assign('contentDimensionsPresets', $this->contentDimensionPresetSource->getAllPresets());
        }
    }
ContentDimensionsController