src/ScContent/Entity/Back/WidgetConfig.php
public function findApplicableRoles()
    {
        $widget = $this->widget;
        $array = [];
        foreach ($this->availableRoles as $role) {
            if ($widget->isApplicable($role)) {
                $array[] = $role;
            }
        }
        return $array;
    }
public function findApplicableRoles()
    {
        $widget = $this->widget;
        $array = [];
        foreach ($this->availableRoles as $role) {
            if ($widget->isApplicable($role)) {
                $array[] = $role;
            }
        }
        return $array;
    }
public function findApplicableRoles ( ) { $ widget = $ this -> widget ; $ array = [ ] ; foreach ( $ this -> availableRoles as $ role ) { if ( $ widget -> isApplicable ( $ role ) ) { $ array [ ] = $ role ; } } return $ array ; }
Find applicable roles.

@return string[]
Find applicable roles .