protected function addPotentialAction()
    {
        $class = static::$helper->get_search_action_type();
        if (class_exists( $class )) {
            $class_test = new \ReflectionClass( $class );
            if ($class_test->implementsInterface( 'Lti\Seo\Generators\ICanSearch' )) {
                $this->potentialAction = new $class( static::$helper );
            }
        }
    }
protected function addPotentialAction()
    {
        $class = static::$helper->get_search_action_type();
        if (class_exists( $class )) {
            $class_test = new \ReflectionClass( $class );
            if ($class_test->implementsInterface( 'Lti\Seo\Generators\ICanSearch' )) {
                $this->potentialAction = new $class( static::$helper );
            }
        }
    }
protected function addPotentialAction ( ) { $ class = static :: $ helper -> get_search_action_type ( ) ; if ( class_exists ( $ class ) ) { $ class_test = new \ ReflectionClass ( $ class ) ; if ( $ class_test -> implementsInterface ( 'Lti\Seo\Generators\ICanSearch' ) ) { $ this -> potentialAction = new $ class ( static :: $ helper ) ; } } }
Adds a search potential action if the website supports it.
Adds a search potential action if the website supports it .