Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSocialMetaRelation()
 {
     return $this->hasMany(SocialMeta::className(), ['meta_id' => 'id'])->where(['meta_type' => Yii::$app->get('typesRegister')->getEntityType($this)]);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['card' => Module::t('twitterCard', 'Card'), 'site' => Module::t('twitterCard', 'Site'), 'title' => Module::t('twitterCard', 'Title'), 'description' => Module::t('twitterCard', 'Description'), 'creator' => Module::t('twitterCard', 'Creator'), 'image' => Module::t('twitterCard', 'Image')]);
 }
Example #3
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['title' => Module::t('openGraph', 'Title'), 'type' => Module::t('openGraph', 'Type'), 'url' => Module::t('openGraph', 'Url'), 'image' => Module::t('openGraph', 'Image'), 'description' => Module::t('openGraph', 'Description'), 'site_name' => Module::t('openGraph', 'Site Name'), 'video' => Module::t('openGraph', 'Video')]);
 }