Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyPoolInterface::getStrategyByWebspaceKey PHP Méthode

getStrategyByWebspaceKey() public méthode

Returns strategy by given webspaceKey.
public getStrategyByWebspaceKey ( string $webspaceKey ) : Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface
$webspaceKey string
Résultat Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface
    public function getStrategyByWebspaceKey($webspaceKey);

Usage Example

 /**
  * {@inheritdoc}
  */
 public function getParameters()
 {
     $result = [];
     foreach ($this->webspaceManager->getWebspaceCollection() as $webspace) {
         $result[$webspace->getKey()] = $this->resourceLocatorStrategyPool->getStrategyByWebspaceKey($webspace->getKey())->getInputType();
     }
     return $result;
 }
All Usage Examples Of Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyPoolInterface::getStrategyByWebspaceKey
ResourceLocatorStrategyPoolInterface