Sulu\Bundle\ContentBundle\Teaser\TeaserContentType::getContentData PHP Метод

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

public getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface
    public function getContentData(PropertyInterface $property)
    {
        $value = $this->getValue($property);
        if (!is_array($value['items']) || 0 === count($value['items'])) {
            return [];
        }
        return $this->teaserManager->find($value['items'], $property->getStructure()->getLanguageCode());
    }