FluidTYPO3\Flux\Service\FluxService::resolveConfigurationProviders PHP Method

resolveConfigurationProviders() public method

Resolves a ConfigurationProvider which can provide a working FlexForm configuration based on the given parameters.
public resolveConfigurationProviders ( string $table, string $fieldName, array $row = NULL, string $extensionKey = NULL ) : FluidTYPO3\Flux\Provider\ProviderInterface[]
$table string
$fieldName string
$row array
$extensionKey string
return FluidTYPO3\Flux\Provider\ProviderInterface[]
    public function resolveConfigurationProviders($table, $fieldName, array $row = NULL, $extensionKey = NULL)
    {
        return $this->providerResolver->resolveConfigurationProviders($table, $fieldName, $row, $extensionKey);
    }

Usage Example

示例#1
0
 /**
  * @param string $headerContent
  * @param string $itemContent
  * @param array $row
  * @param boolean $drawItem
  * @return NULL
  */
 public function renderPreview(&$headerContent, &$itemContent, array &$row, &$drawItem)
 {
     $fieldName = NULL;
     // every provider for tt_content will be asked to get a preview
     if ('shortcut' === $row['CType'] && FALSE === strpos($row['records'], ',')) {
         $itemContent = $this->createShortcutIcon($row) . $itemContent;
     } else {
         $itemContent = '<a name="c' . $row['uid'] . '"></a>' . $itemContent;
     }
     $providers = $this->configurationService->resolveConfigurationProviders('tt_content', $fieldName, $row);
     foreach ($providers as $provider) {
         /** @var ProviderInterface $provider */
         list($previewHeader, $previewContent, $continueDrawing) = $provider->getPreview($row);
         if (FALSE === empty($previewHeader)) {
             $headerContent = $previewHeader . (FALSE === empty($headerContent) ? ': ' . $headerContent : '');
             $drawItem = FALSE;
         }
         if (FALSE === empty($previewContent)) {
             $itemContent .= $previewContent;
             $drawItem = FALSE;
         }
         if (FALSE === $continueDrawing) {
             break;
         }
     }
     $this->attachAssets();
     return NULL;
 }
All Usage Examples Of FluidTYPO3\Flux\Service\FluxService::resolveConfigurationProviders