Sulu\Bundle\MediaBundle\Content\Types\MediaSelectionContentType::getContentData PHP Method

getContentData() public method

public getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface
    public function getContentData(PropertyInterface $property)
    {
        $data = $property->getValue();
        $params = $this->getParams($property->getParams());
        $types = $params['types']->getValue();
        $container = new MediaSelectionContainer(isset($data['config']) ? $data['config'] : [], isset($data['displayOption']) ? $data['displayOption'] : '', isset($data['ids']) ? $data['ids'] : [], $property->getStructure()->getLanguageCode(), $types, $this->mediaManager);
        return $container->getData();
    }