Common\Doctrine\ValueObject\SEOFollow::getPossibleValues PHP Method

getPossibleValues() public static method

public static getPossibleValues ( ) : array
return array
    public static function getPossibleValues()
    {
        return [self::NONE, self::FOLLOW, self::NOFOLLOW];
    }

Usage Example

Esempio n. 1
0
 /**
  * @return array
  */
 private function getSEOFollowChoiceTypeOptions()
 {
     return ['expanded' => true, 'multiple' => false, 'choices' => array_combine(SEOFollow::getPossibleValues(), SEOFollow::getPossibleValues()), 'choice_label' => function ($SEOFollow) {
         if ($SEOFollow === SEOFollow::NONE) {
             return 'lbl.' . ucfirst($SEOFollow);
         }
         return $SEOFollow;
     }, 'data' => SEOFollow::NONE, 'choice_translation_domain' => true, 'required' => false, 'placeholder' => false, 'label_attr' => ['class' => 'radio-list']];
 }