get() 공개 메소드

public get ( string $name, string $languageCode, string | null $default = null ) : string | null
$name string meta data name
$languageCode string
$default string | null
리턴 string | null
예제 #1
0
 /**
  * Returns placeholder of property param.
  *
  * @param string $languageCode
  *
  * @return string
  */
 public function getPlaceholder($languageCode)
 {
     return $this->metadata->get('placeholder', $languageCode, '');
 }
예제 #2
0
 /**
  * @param string $languageCode
  *
  * @return string
  */
 public function getTitle($languageCode)
 {
     return $this->metadata->get('title', $languageCode, ucfirst($this->getName()));
 }
예제 #3
0
 /**
  * @param $locale
  *
  * @return null|string
  */
 public function getTitle($locale)
 {
     return $this->metadata->get('title', $locale, ucfirst($this->key));
 }
예제 #4
0
파일: Structure.php 프로젝트: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function getLocalizedTitle($languageCode)
 {
     $default = ucfirst($this->key);
     if ($this->metaData) {
         return $this->metaData->get('title', $languageCode, $default);
     } else {
         return $default;
     }
 }