Example #1
0
 /**
  * Returns placeholder of property param.
  *
  * @param string $languageCode
  *
  * @return string
  */
 public function getPlaceholder($languageCode)
 {
     return $this->metadata->get('placeholder', $languageCode, '');
 }
Example #2
0
 /**
  * @param string $languageCode
  *
  * @return string
  */
 public function getTitle($languageCode)
 {
     return $this->metadata->get('title', $languageCode, ucfirst($this->getName()));
 }
Example #3
0
 /**
  * @return array
  */
 public function getMetadata()
 {
     return $this->metadata->getData();
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function getLocalizedTitle($languageCode)
 {
     $default = ucfirst($this->key);
     if ($this->metaData) {
         return $this->metaData->get('title', $languageCode, $default);
     } else {
         return $default;
     }
 }