getTitle() public method

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