Dingo\Api\Routing\Route::optionsApplyToControllerMethod PHP Method

optionsApplyToControllerMethod() protected method

Determine if a controller method is in an array of options.
protected optionsApplyToControllerMethod ( array $options ) : boolean
$options array
return boolean
    protected function optionsApplyToControllerMethod(array $options)
    {
        if (empty($options)) {
            return true;
        } elseif (isset($options['only']) && in_array($this->controllerMethod, $this->explodeOnPipes($options['only']))) {
            return true;
        } elseif (isset($options['except'])) {
            return !in_array($this->controllerMethod, $this->explodeOnPipes($options['except']));
        } elseif (in_array($this->controllerMethod, $this->explodeOnPipes($options))) {
            return true;
        }
        return false;
    }