src/Loader.php
private function resource($resources, $src, $deps, $type, $cond)
    {
        $resources[] = array(
            'handle' => $this->slug . '_' . $src,
            'src' => plugins_url($src, $this->basename),
            'deps' => $deps,
            'type' => $type,
            'cond' => $cond
        );

        return $resources;
    }
private function resource($resources, $src, $deps, $type, $cond)
    {
        $resources[] = array(
            'handle' => $this->slug . '_' . $src,
            'src' => plugins_url($src, $this->basename),
            'deps' => $deps,
            'type' => $type,
            'cond' => $cond
        );

        return $resources;
    }
A utility function that is used to register the actions and hooks into a single
collection.

@since   1.0.0
@access  private
@param   array $resources The collection of resources that is being registered (that is, styles or scripts).
@param   bool|string $src Path to the resource from the root directory of the plugin.
@param   array $deps An array of registered handles this resource depends on. Default empty array.
@param   string $type Optional. Include in wp, admin or both.
@param   bool $cond
@return  array The collection of styles and scripts registered with WordPress.