FluidTYPO3\Flux\Service\FluxService::resolvePrimaryConfigurationProvider PHP Метод

resolvePrimaryConfigurationProvider() публичный Метод

ResolveUtility the top-priority ConfigurationPrivider which can provide a working FlexForm configuration baed on the given parameters.
public resolvePrimaryConfigurationProvider ( string $table, string $fieldName, array $row = NULL, string $extensionKey = NULL ) : FluidTYPO3\Flux\Provider\ProviderInterface | null
$table string
$fieldName string
$row array
$extensionKey string
Результат FluidTYPO3\Flux\Provider\ProviderInterface | null
    public function resolvePrimaryConfigurationProvider($table, $fieldName, array $row = NULL, $extensionKey = NULL)
    {
        return $this->providerResolver->resolvePrimaryConfigurationProvider($table, $fieldName, $row, $extensionKey);
    }

Usage Example

Пример #1
0
 /**
  * @throws \RuntimeException
  * @return void
  */
 protected function initializeProvider()
 {
     $row = $this->getRecord();
     $table = $this->getFluxTableName();
     $field = $this->getFluxRecordField();
     $this->provider = $this->configurationService->resolvePrimaryConfigurationProvider($table, $field, $row);
     if (NULL === $this->provider) {
         throw new \RuntimeException('Unable to resolve a ConfigurationProvider, but controller indicates it is a Flux-enabled Controller - ' . 'this is a grave error and indicates that EXT: ' . $this->extensionName . ' itself is broken - or that EXT:' . $this->extensionName . ' has been overridden by another implementation which is broken. The controller that ' . 'caused this error was ' . get_class($this) . '".', 1377458581);
     }
 }
All Usage Examples Of FluidTYPO3\Flux\Service\FluxService::resolvePrimaryConfigurationProvider