src/Modules/ModuleManager.php
public function getByAssociatedClass($modelClass)
    {
        if ( ! array_key_exists($modelClass, $this->associatedClassIndex)) {
            return false;
        }

        $key = $this->associatedClassIndex[ $modelClass ];

        return $this->get($key);
    }
public function getByAssociatedClass($modelClass)
    {
        if ( ! array_key_exists($modelClass, $this->associatedClassIndex)) {
            return false;
        }

        $key = $this->associatedClassIndex[ $modelClass ];

        return $this->get($key);
    }
public function getByAssociatedClass ( $ modelClass ) { if ( ! array_key_exists ( $ modelClass , $ this -> associatedClassIndex ) ) { return false ; } $ key = $ this -> associatedClassIndex [ $ modelClass ] ; return $ this -> get ( $ key ) ; }
Returns a module by its associated class. This may be an
Eloquent model, for instance, for modules dedicated to
editing a specific class. If multiple associations for the
same class exist, the first ordered will be returned.

@param string $modelClass FQN of model
@return ModuleInterface|false
Returns a module by its associated class . This may be an Eloquent model for instance for modules dedicated to editing a specific class . If multiple associations for the same class exist the first ordered will be returned .