getTitle() public method

public getTitle ( ) : string
return string
 private function serialize(Media $media)
 {
     return ['id' => $media->getId(), 'title' => $media->getTitle(), 'tags' => array_map(function ($tag) {
         return $tag->getName();
     }, $media->getTags())];
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  *
  * @VirtualProperty
  */
 public function getTitle()
 {
     return $this->entity->getTitle();
 }