src/Forms/Fields/Types/BaseType.php
public function getOptions(array $excludes = null): array
    {
        if (! is_null($excludes)) {
            return array_filter($this->options, function ($key) use ($excludes) {
                return ! in_array($key, $excludes, true);
            }, ARRAY_FILTER_USE_KEY);
        }

        return $this->options;
    }
public function getOptions(array $excludes = null): array
    {
        if (! is_null($excludes)) {
            return array_filter($this->options, function ($key) use ($excludes) {
                return ! in_array($key, $excludes, true);
            }, ARRAY_FILTER_USE_KEY);
        }

        return $this->options;
    }
public function getOptions ( array $ excludes = null ) : array { if ( ! is_null ( $ excludes ) ) { return array_filter ( $ this -> options , function ( $ key ) use ( $ excludes ) { return ! in_array ( $ key , $ excludes , true ) ; } , ARRAY_FILTER_USE_KEY ) ; } return $ this -> options ; }
Return field options.

@param array $excludes

@return array
Return field options .