Devise\Users\Permissions\PermissionsRepository::getPermissionSourceByPath PHP Method

getPermissionSourceByPath() protected method

Get the extends/layout string from given permission path
protected getPermissionSourceByPath ( $condition ) : array
return array
    protected function getPermissionSourceByPath($condition)
    {
        // find the file location, so we can get the file contents
        $fileLocation = $this->View->make($condition)->getPath();
        return File::get($fileLocation);
    }