private function getPluginPriority($name, $index = 0)
    {
        $priority = 10;
        if (property_exists($this, "{$name}PluginPriority")) {
            $value    = $this->{$name . 'PluginPriority'};
            $priority = is_array($value) ? $value[ $index ] : $value;
        }

        return $priority;
    }
private function getPluginPriority($name, $index = 0)
    {
        $priority = 10;
        if (property_exists($this, "{$name}PluginPriority")) {
            $value    = $this->{$name . 'PluginPriority'};
            $priority = is_array($value) ? $value[ $index ] : $value;
        }

        return $priority;
    }
private function getPluginPriority ( $ name , $ index = 0 ) { $ priority = 10 ; if ( property_exists ( $ this , "{$name}PluginPriority" ) ) { $ value = $ this -> { $ name . 'PluginPriority' } ; $ priority = is_array ( $ value ) ? $ value [ $ index ] : $ value ; } return $ priority ; }
getPluginPriority method.

@param     $name
@param int $index If a plugin priority is defined as array, the 0 index is for register and 1 for boot

@return int|mixed
getPluginPriority method .