Пример #1
0
 /**
  * {@inheritdoc}
  */
 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());
 }