public static function enabled()
    {
        if (!class_exists(TaxonomyTerm::class)) {
            return false;
        }

        // Check if pages has the tags field
        $field = Config::inst()->get(__CLASS__, 'tag_field');

        return singleton('Page')->hasMethod($field);
    }
public static function enabled()
    {
        if (!class_exists(TaxonomyTerm::class)) {
            return false;
        }

        // Check if pages has the tags field
        $field = Config::inst()->get(__CLASS__, 'tag_field');

        return singleton('Page')->hasMethod($field);
    }
public static function enabled ( ) { if ( ! class_exists ( TaxonomyTerm :: class ) ) { return false ; } // Check if pages has the tags field $ field = Config :: inst ( ) -> get ( __CLASS__ , 'tag_field' ) ; return singleton ( 'Page' ) -> hasMethod ( $ field ) ; }
Check if this field is enabled.

@return bool
Check if this field is enabled .